FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::LookAheadComposeFilter< Filter, M1, M2, MT > Class Template Reference

#include <lookahead-filter.h>

Public Types

using Arc = typename Filter::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using FST1 = typename Filter::FST1
 
using FST2 = typename Filter::FST2
 
using Matcher1 = typename Filter::Matcher1
 
using Matcher2 = typename Filter::Matcher2
 
using FilterState = typename Filter::FilterState
 

Public Member Functions

 LookAheadComposeFilter (const FST1 &fst1, const FST2 &fst2, M1 *matcher1, M2 *matcher2)
 
 LookAheadComposeFilter (const LookAheadComposeFilter< Filter, M1, M2, MT > &filter, bool safe=false)
 
FilterState Start () const
 
void SetState (StateId s1, StateId s2, const FilterState &fs)
 
FilterState FilterArc (Arc *arc1, Arc *arc2) const
 
void FilterFinal (Weight *weight1, Weight *weight2) const
 
Matcher1GetMatcher1 ()
 
Matcher2GetMatcher2 ()
 
const LookAheadSelector< Matcher1, Matcher2, MT > & Selector () const
 
uint64 Properties (uint64 inprops) const
 
uint32 LookAheadFlags () const
 
bool LookAheadArc () const
 
bool LookAheadOutput () const
 

Detailed Description

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

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

Member Typedef Documentation

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Arc = typename Filter::Arc

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::FilterState = typename Filter::FilterState

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::FST1 = typename Filter::FST1

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::FST2 = typename Filter::FST2

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Matcher1 = typename Filter::Matcher1

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Matcher2 = typename Filter::Matcher2

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::StateId = typename Arc::StateId

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
using fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

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

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

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher1* fst::LookAheadComposeFilter< Filter, M1, M2, MT >::GetMatcher1 ( )
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher2* fst::LookAheadComposeFilter< Filter, M1, M2, MT >::GetMatcher2 ( )
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::LookAheadComposeFilter< Filter, M1, M2, MT >::LookAheadArc ( ) const
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint32 fst::LookAheadComposeFilter< Filter, M1, M2, MT >::LookAheadFlags ( ) const
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::LookAheadComposeFilter< Filter, M1, M2, MT >::LookAheadOutput ( ) const
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint64 fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Properties ( uint64  inprops) const
inline

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

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

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
void fst::LookAheadComposeFilter< Filter, M1, M2, MT >::SetState ( StateId  s1,
StateId  s2,
const FilterState fs 
)
inline

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

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
FilterState fst::LookAheadComposeFilter< Filter, M1, M2, MT >::Start ( ) const
inline

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


The documentation for this class was generated from the following file: