Public Types | Public Member Functions

fst::PushWeightsComposeFilter< F, M1, M2, MT > Class Template Reference

#include <fst/lookahead-filter.h>

Collaboration diagram for fst::PushWeightsComposeFilter< F, M1, M2, MT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef F::FST1 FST1
typedef F::FST2 FST2
typedef F::Arc Arc
typedef F::Matcher1 Matcher1
typedef F::Matcher2 Matcher2
typedef F::FilterState FilterState1
typedef WeightFilterState
< typename Arc::Weight > 
FilterState2
typedef PairFilterState
< FilterState1, FilterState2
FilterState
typedef Arc::StateId StateId
typedef Arc::Label Label
typedef Arc::Weight Weight

Public Member Functions

 PushWeightsComposeFilter (const FST1 &fst1, const FST2 &fst2, M1 *matcher1, M2 *matcher2)
 PushWeightsComposeFilter (const PushWeightsComposeFilter< F, M1, M2, MT > &filter, bool safe=false)
FilterState Start () const
void SetState (StateId s1, StateId s2, const FilterState &f)
FilterState FilterArc (Arc *arc1, Arc *arc2) const
void FilterFinal (Weight *weight1, Weight *weight2) const
Matcher1GetMatcher1 ()
 Return resp matchers. Ownership states with filter.
Matcher2GetMatcher2 ()
const LookAheadSelector
< Matcher1, Matcher2, MT > & 
Selector () const
uint32 LookAheadFlags () const
bool LookAheadArc () const
bool LookAheadOutput () const
uint64 Properties (uint64 props) const

Detailed Description

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
class fst::PushWeightsComposeFilter< F, M1, M2, MT >

This filter adds weight-pushing to a lookahead composition filter using the LookAheadWeight() method of matcher argument. It is templated on an underlying lookahead filter, typically the basic lookahead filter. Weight-pushing in composition brings weights forward as much as possible based on the lookahead information.

Definition at line 325 of file lookahead-filter.h.


Member Typedef Documentation

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::Arc fst::PushWeightsComposeFilter< F, M1, M2, MT >::Arc

Definition at line 329 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef PairFilterState<FilterState1, FilterState2> fst::PushWeightsComposeFilter< F, M1, M2, MT >::FilterState

Definition at line 334 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::FilterState fst::PushWeightsComposeFilter< F, M1, M2, MT >::FilterState1

Definition at line 332 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef WeightFilterState<typename Arc::Weight> fst::PushWeightsComposeFilter< F, M1, M2, MT >::FilterState2

Definition at line 333 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::FST1 fst::PushWeightsComposeFilter< F, M1, M2, MT >::FST1

Definition at line 327 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::FST2 fst::PushWeightsComposeFilter< F, M1, M2, MT >::FST2

Definition at line 328 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef Arc::Label fst::PushWeightsComposeFilter< F, M1, M2, MT >::Label

Definition at line 337 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::Matcher1 fst::PushWeightsComposeFilter< F, M1, M2, MT >::Matcher1

Definition at line 330 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef F::Matcher2 fst::PushWeightsComposeFilter< F, M1, M2, MT >::Matcher2

Definition at line 331 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef Arc::StateId fst::PushWeightsComposeFilter< F, M1, M2, MT >::StateId

Definition at line 336 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
typedef Arc::Weight fst::PushWeightsComposeFilter< F, M1, M2, MT >::Weight

Definition at line 338 of file lookahead-filter.h.


Constructor & Destructor Documentation

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
fst::PushWeightsComposeFilter< F, M1, M2, MT >::PushWeightsComposeFilter ( const FST1 fst1,
const FST2 fst2,
M1 *  matcher1,
M2 *  matcher2 
) [inline]

Definition at line 340 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
fst::PushWeightsComposeFilter< F, M1, M2, MT >::PushWeightsComposeFilter ( const PushWeightsComposeFilter< F, M1, M2, MT > &  filter,
bool  safe = false 
) [inline]

Definition at line 345 of file lookahead-filter.h.


Member Function Documentation

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
FilterState fst::PushWeightsComposeFilter< F, M1, M2, MT >::FilterArc ( Arc arc1,
Arc arc2 
) const [inline]

Definition at line 360 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
void fst::PushWeightsComposeFilter< F, M1, M2, MT >::FilterFinal ( Weight weight1,
Weight weight2 
) const [inline]

Definition at line 377 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher1* fst::PushWeightsComposeFilter< F, M1, M2, MT >::GetMatcher1 (  )  [inline]

Return resp matchers. Ownership states with filter.

Definition at line 387 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher2* fst::PushWeightsComposeFilter< F, M1, M2, MT >::GetMatcher2 (  )  [inline]

Definition at line 388 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::PushWeightsComposeFilter< F, M1, M2, MT >::LookAheadArc (  )  const [inline]

Definition at line 395 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint32 fst::PushWeightsComposeFilter< F, M1, M2, MT >::LookAheadFlags (  )  const [inline]

Definition at line 394 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::PushWeightsComposeFilter< F, M1, M2, MT >::LookAheadOutput (  )  const [inline]

Definition at line 396 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint64 fst::PushWeightsComposeFilter< F, M1, M2, MT >::Properties ( uint64  props  )  const [inline]

Definition at line 398 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
const LookAheadSelector<Matcher1, Matcher2, MT>& fst::PushWeightsComposeFilter< F, M1, M2, MT >::Selector (  )  const [inline]

Definition at line 390 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
void fst::PushWeightsComposeFilter< F, M1, M2, MT >::SetState ( StateId  s1,
StateId  s2,
const FilterState f 
) [inline]

Definition at line 355 of file lookahead-filter.h.

template<class F, class M1 = LookAheadMatcher<typename F::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
FilterState fst::PushWeightsComposeFilter< F, M1, M2, MT >::Start (  )  const [inline]

Definition at line 351 of file lookahead-filter.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines