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

#include <lookahead-matcher.h>

Inheritance diagram for fst::LabelLookAheadMatcher< M, flags, Accum, R >:
Inheritance graph
[legend]
Collaboration diagram for fst::LabelLookAheadMatcher< M, flags, Accum, R >:
Collaboration graph
[legend]

Public Types

enum  : uint32 { kFlags = flags }
 
using Matcher = M
 
using Accumulator = Accum
 
using Reachable = R
 
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=nullptr, std::unique_ptr< Accumulator > accumulator=nullptr)
 
 LabelLookAheadMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=nullptr, std::unique_ptr< Accumulator > accumulator=nullptr)
 
 LabelLookAheadMatcher (const LabelLookAheadMatcher &lmatcher, bool safe=false)
 
LabelLookAheadMatcherCopy (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 Accum = DefaultAccumulator<typename M::Arc>, class R = LabelReachable<typename M::Arc, Accum>>
class fst::LabelLookAheadMatcher< M, flags, Accum, R >

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

template<class M , uint32 flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accum = DefaultAccumulator<typename M::Arc>, class R = LabelReachable<typename M::Arc, Accum>>
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Matcher = M

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

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

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

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

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

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

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

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

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

Member Enumeration Documentation

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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