FST  openfst-1.8.3
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 FST *fst, MatchType match_type)
 
 TrivialLookAheadMatcher (const TrivialLookAheadMatcher &lmatcher, bool safe=false)
 
TrivialLookAheadMatcherCopy (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_t Properties (uint64_t props) const override
 
uint32_t 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 ()=default
 

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 187 of file lookahead-matcher.h.

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

Definition at line 194 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 197 of file lookahead-matcher.h.

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

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

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

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

Member Function Documentation

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

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

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

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

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

Definition at line 219 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 225 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 217 of file lookahead-matcher.h.

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

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

Definition at line 235 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 229 of file lookahead-matcher.h.

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

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

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

Definition at line 243 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 245 of file lookahead-matcher.h.

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

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

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

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

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

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

Definition at line 223 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 227 of file lookahead-matcher.h.

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

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

Definition at line 231 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 215 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 213 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 221 of file lookahead-matcher.h.


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