FST  openfst-1.6.1
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::TrivialLookAheadMatcher< M > Class Template Reference

#include <lookahead-matcher.h>

Inheritance diagram for fst::TrivialLookAheadMatcher< M >:
Inheritance graph
[legend]
Collaboration diagram for fst::TrivialLookAheadMatcher< M >:
Collaboration graph
[legend]

Public Types

using FST = typename M::FST
 
using Arc = typename FST::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::LookAheadMatcherBase< M::FST::Arc >
using Label = typename M::FST::Arc::Label
 
using StateId = typename M::FST::Arc::StateId
 
using Weight = typename M::FST::Arc::Weight
 
- Public Types inherited from fst::MatcherBase< M::FST::Arc >
using Arc = M::FST::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 TrivialLookAheadMatcher (const FST &fst, MatchType match_type)
 
 TrivialLookAheadMatcher (const TrivialLookAheadMatcher< M > &lmatcher, bool safe=false)
 
TrivialLookAheadMatcher< M > * Copy (bool safe=false) const override
 
MatchType Type (bool test) const override
 
void SetState (StateId s) final
 
bool Find (Label label) final
 
bool Done () const final
 
const ArcValue () const final
 
void Next () final
 
Weight Final (StateId s) const final
 
ssize_t Priority (StateId s) final
 
const FSTGetFst () const override
 
uint64 Properties (uint64 props) const override
 
uint32 Flags () const override
 
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false) override
 
bool LookAheadFst (const Fst< Arc > &, StateId) final
 
bool LookAheadLabel (Label) const final
 
bool LookAheadPrefix (Arc *) const
 
Weight LookAheadWeight () const
 
- Public Member Functions inherited from fst::LookAheadMatcherBase< M::FST::Arc >
virtual void InitLookAheadFst (const Fst< M::FST::Arc > &, bool copy=false)=0
 
virtual bool LookAheadFst (const Fst< M::FST::Arc > &, StateId)=0
 
bool LookAheadPrefix (M::FST::Arc *arc) const
 
Weight LookAheadWeight () const
 
- Public Member Functions inherited from fst::MatcherBase< M::FST::Arc >
virtual ~MatcherBase ()
 

Additional Inherited Members

- Protected Member Functions inherited from fst::LookAheadMatcherBase< M::FST::Arc >
void ClearLookAheadWeight ()
 
void SetLookAheadWeight (Weight weight)
 
void ClearLookAheadPrefix ()
 
void SetLookAheadPrefix (M::FST::Arcarc)
 

Detailed Description

template<class M>
class fst::TrivialLookAheadMatcher< M >

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

Member Typedef Documentation

template<class M>
using fst::TrivialLookAheadMatcher< M >::Arc = typename FST::Arc

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

template<class M>
using fst::TrivialLookAheadMatcher< M >::FST = typename M::FST

Definition at line 160 of file lookahead-matcher.h.

template<class M>
using fst::TrivialLookAheadMatcher< M >::Label = typename Arc::Label

Definition at line 162 of file lookahead-matcher.h.

template<class M>
using fst::TrivialLookAheadMatcher< M >::StateId = typename Arc::StateId

Definition at line 163 of file lookahead-matcher.h.

template<class M>
using fst::TrivialLookAheadMatcher< M >::Weight = typename Arc::Weight

Definition at line 164 of file lookahead-matcher.h.

Constructor & Destructor Documentation

template<class M>
fst::TrivialLookAheadMatcher< M >::TrivialLookAheadMatcher ( const FST fst,
MatchType  match_type 
)
inline

Definition at line 166 of file lookahead-matcher.h.

template<class M>
fst::TrivialLookAheadMatcher< M >::TrivialLookAheadMatcher ( const TrivialLookAheadMatcher< M > &  lmatcher,
bool  safe = false 
)
inline

Definition at line 169 of file lookahead-matcher.h.

Member Function Documentation

template<class M>
TrivialLookAheadMatcher<M>* fst::TrivialLookAheadMatcher< M >::Copy ( bool  safe = false) const
inlineoverridevirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 173 of file lookahead-matcher.h.

template<class M>
bool fst::TrivialLookAheadMatcher< M >::Done ( ) const
inlinefinalvirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 183 of file lookahead-matcher.h.

template<class M>
Weight fst::TrivialLookAheadMatcher< M >::Final ( StateId  s) const
inlinefinalvirtual

Reimplemented from fst::MatcherBase< M::FST::Arc >.

Definition at line 189 of file lookahead-matcher.h.

template<class M>
bool fst::TrivialLookAheadMatcher< M >::Find ( Label  label)
inlinefinalvirtual

Implements fst::MatcherBase< M::FST::Arc >.

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

template<class M>
uint32 fst::TrivialLookAheadMatcher< M >::Flags ( ) const
inlineoverridevirtual

Reimplemented from fst::MatcherBase< M::FST::Arc >.

Definition at line 199 of file lookahead-matcher.h.

template<class M>
const FST& fst::TrivialLookAheadMatcher< M >::GetFst ( ) const
inlineoverridevirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 193 of file lookahead-matcher.h.

template<class M>
void fst::TrivialLookAheadMatcher< M >::InitLookAheadFst ( const Fst< Arc > &  fst,
bool  copy = false 
)
inlineoverride

Definition at line 205 of file lookahead-matcher.h.

template<class M>
bool fst::TrivialLookAheadMatcher< M >::LookAheadFst ( const Fst< Arc > &  ,
StateId   
)
inlinefinal

Definition at line 207 of file lookahead-matcher.h.

template<class M>
bool fst::TrivialLookAheadMatcher< M >::LookAheadLabel ( Label  ) const
inlinefinalvirtual

Implements fst::LookAheadMatcherBase< M::FST::Arc >.

Definition at line 209 of file lookahead-matcher.h.

template<class M>
bool fst::TrivialLookAheadMatcher< M >::LookAheadPrefix ( Arc ) const
inline

Definition at line 211 of file lookahead-matcher.h.

template<class M>
Weight fst::TrivialLookAheadMatcher< M >::LookAheadWeight ( ) const
inline

Definition at line 213 of file lookahead-matcher.h.

template<class M>
void fst::TrivialLookAheadMatcher< M >::Next ( )
inlinefinalvirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 187 of file lookahead-matcher.h.

template<class M>
ssize_t fst::TrivialLookAheadMatcher< M >::Priority ( StateId  s)
inlinefinalvirtual

Reimplemented from fst::MatcherBase< M::FST::Arc >.

Definition at line 191 of file lookahead-matcher.h.

template<class M>
uint64 fst::TrivialLookAheadMatcher< M >::Properties ( uint64  props) const
inlineoverridevirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 195 of file lookahead-matcher.h.

template<class M>
void fst::TrivialLookAheadMatcher< M >::SetState ( StateId  s)
inlinefinalvirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 179 of file lookahead-matcher.h.

template<class M>
MatchType fst::TrivialLookAheadMatcher< M >::Type ( bool  test) const
inlineoverridevirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 177 of file lookahead-matcher.h.

template<class M>
const Arc& fst::TrivialLookAheadMatcher< M >::Value ( ) const
inlinefinalvirtual

Implements fst::MatcherBase< M::FST::Arc >.

Definition at line 185 of file lookahead-matcher.h.


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