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

#include <lookahead-matcher.h>

Inheritance diagram for fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >:
Inheritance graph
[legend]
Collaboration diagram for fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >:
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 = typename Reachable::Data
 
- 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

 LabelLookAheadMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::shared_ptr< MatcherData >(), Accumulator *accumulator=nullptr)
 
 LabelLookAheadMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::shared_ptr< MatcherData >(), Accumulator *accumulator=nullptr)
 
 LabelLookAheadMatcher (const LabelLookAheadMatcher< M, flags, Accumulator, Reachable > &lmatcher, bool safe=false)
 
LabelLookAheadMatcher< M, flags, Accumulator, Reachable > * 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 inprops) const override
 
uint32 Flags () const override
 
const MatcherDataGetData () const
 
std::shared_ptr< MatcherDataGetSharedData () const
 
template<class LFST >
bool LookAheadFst (const LFST &fst, StateId s)
 
bool LookAheadFst (const Fst< Arc > &fst, StateId s) final
 
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false) override
 
template<class LFST >
void InitLookAheadFst (const LFST &fst, bool copy=false)
 
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 = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
class fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >

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

Member Typedef Documentation

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Arc = typename FST::Arc

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::FST = typename M::FST

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Label = typename Arc::Label

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::MatcherData = typename Reachable::Data

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::StateId = typename Arc::StateId

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
using fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Weight = typename Arc::Weight

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

Member Enumeration Documentation

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
anonymous enum : uint32
Enumerator
kFlags 

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

Constructor & Destructor Documentation

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LabelLookAheadMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::shared_ptr<MatcherData>(),
Accumulator *  accumulator = nullptr 
)
inline

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LabelLookAheadMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::shared_ptr<MatcherData>(),
Accumulator *  accumulator = nullptr 
)
inline

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LabelLookAheadMatcher ( const LabelLookAheadMatcher< M, flags, Accumulator, Reachable > &  lmatcher,
bool  safe = false 
)
inline

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

Member Function Documentation

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
LabelLookAheadMatcher<M, flags, Accumulator, Reachable>* fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
bool fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Done ( ) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
Weight fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Final ( StateId  s) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
bool fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Find ( Label  label)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
uint32 fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Flags ( ) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
const MatcherData* fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::GetData ( ) const
inline

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
const FST& fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::GetFst ( ) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
std::shared_ptr<MatcherData> fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::GetSharedData ( ) const
inline

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
void fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::InitLookAheadFst ( const Fst< Arc > &  fst,
bool  copy = false 
)
inlineoverride

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
template<class LFST >
void fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::InitLookAheadFst ( const LFST &  fst,
bool  copy = false 
)
inline

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

template<class M , uint32 flags, class Accumulator , class Reachable >
template<class LFST >
bool fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LookAheadFst ( const LFST &  fst,
StateId  s 
)
inline

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
bool fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LookAheadFst ( const Fst< Arc > &  fst,
StateId  s 
)
inlinefinal

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
bool fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::LookAheadLabel ( Label  label) const
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
void fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Next ( )
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
ssize_t fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Priority ( StateId  s)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
uint64 fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Properties ( uint64  inprops) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
void fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::SetState ( StateId  s)
inlinefinalvirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
MatchType fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Type ( bool  test) const
inlineoverridevirtual

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

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

template<class M, uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accumulator = DefaultAccumulator<typename M::Arc>, class Reachable = LabelReachable<typename M::Arc, Accumulator>>
const Arc& fst::LabelLookAheadMatcher< M, flags, Accumulator, Reachable >::Value ( ) const
inlinefinalvirtual

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

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


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