FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::ArcLookAheadMatcher< M, flags > Class Template Reference

#include <lookahead-matcher.h>

Inheritance diagram for fst::ArcLookAheadMatcher< M, flags >:
Inheritance graph
[legend]
Collaboration diagram for fst::ArcLookAheadMatcher< M, flags >:
Collaboration graph
[legend]

Public Types

enum  : uint32 { kFlags = flags }
 
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
 
using MatcherData = NullAddOn
 
- 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

 ArcLookAheadMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::shared_ptr< MatcherData >())
 
 ArcLookAheadMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::shared_ptr< MatcherData >())
 
 ArcLookAheadMatcher (const ArcLookAheadMatcher< M, flags > &lmatcher, bool safe=false)
 
ArcLookAheadMatcher< M, flags > * 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
 
const MatcherDataGetData () const
 
std::shared_ptr< MatcherDataGetSharedData () const
 
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false) override
 
bool LookAheadFst (const Fst< Arc > &, StateId) final
 
bool LookAheadLabel (Label label) const final
 
- 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, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
class fst::ArcLookAheadMatcher< M, flags >

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

Member Typedef Documentation

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::Arc = typename FST::Arc

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::FST = typename M::FST

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::Label = typename Arc::Label

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::MatcherData = NullAddOn

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::StateId = typename Arc::StateId

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
using fst::ArcLookAheadMatcher< M, flags >::Weight = typename Arc::Weight

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

Member Enumeration Documentation

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
anonymous enum : uint32
Enumerator
kFlags 

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

Constructor & Destructor Documentation

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
fst::ArcLookAheadMatcher< M, flags >::ArcLookAheadMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::shared_ptr<MatcherData>() 
)
inline

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
fst::ArcLookAheadMatcher< M, flags >::ArcLookAheadMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::shared_ptr<MatcherData>() 
)
inline

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
fst::ArcLookAheadMatcher< M, flags >::ArcLookAheadMatcher ( const ArcLookAheadMatcher< M, flags > &  lmatcher,
bool  safe = false 
)
inline

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

Member Function Documentation

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
ArcLookAheadMatcher<M, flags>* fst::ArcLookAheadMatcher< M, flags >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, flags >::Done ( ) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
Weight fst::ArcLookAheadMatcher< M, flags >::Final ( StateId  s) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, flags >::Find ( Label  label)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
uint32 fst::ArcLookAheadMatcher< M, flags >::Flags ( ) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
const MatcherData* fst::ArcLookAheadMatcher< M, flags >::GetData ( ) const
inline

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
const FST& fst::ArcLookAheadMatcher< M, flags >::GetFst ( ) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
std::shared_ptr<MatcherData> fst::ArcLookAheadMatcher< M, flags >::GetSharedData ( ) const
inline

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, flags >::InitLookAheadFst ( const Fst< Arc > &  fst,
bool  copy = false 
)
inlineoverride

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

template<class M , uint32 flags>
bool fst::ArcLookAheadMatcher< M, flags >::LookAheadFst ( const Fst< Arc > &  fst,
StateId  s 
)
final

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, flags >::LookAheadLabel ( Label  label) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, flags >::Next ( )
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
ssize_t fst::ArcLookAheadMatcher< M, flags >::Priority ( StateId  s)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
uint64 fst::ArcLookAheadMatcher< M, flags >::Properties ( uint64  props) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, flags >::SetState ( StateId  s)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
MatchType fst::ArcLookAheadMatcher< M, flags >::Type ( bool  test) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
const Arc& fst::ArcLookAheadMatcher< M, flags >::Value ( ) const
inlinefinalvirtual

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

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


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