FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Attributes | 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

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_t Properties (uint64_t inprops) const override
 
uint32_t 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 ()=default
 

Static Public Attributes

static constexpr uint32_t kFlags = flags
 

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

Member Typedef Documentation

template<class M , uint32_t 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 443 of file lookahead-matcher.h.

template<class M , uint32_t 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 447 of file lookahead-matcher.h.

template<class M , uint32_t 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 446 of file lookahead-matcher.h.

template<class M , uint32_t 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 448 of file lookahead-matcher.h.

template<class M , uint32_t 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 442 of file lookahead-matcher.h.

template<class M , uint32_t 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 451 of file lookahead-matcher.h.

template<class M , uint32_t 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 444 of file lookahead-matcher.h.

template<class M , uint32_t 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 449 of file lookahead-matcher.h.

template<class M , uint32_t 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 450 of file lookahead-matcher.h.

Constructor & Destructor Documentation

template<class M , uint32_t 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 467 of file lookahead-matcher.h.

template<class M , uint32_t 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 478 of file lookahead-matcher.h.

template<class M , uint32_t 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 489 of file lookahead-matcher.h.

Member Function Documentation

template<class M , uint32_t 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 499 of file lookahead-matcher.h.

template<class M , uint32_t 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 520 of file lookahead-matcher.h.

template<class M , uint32_t 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 526 of file lookahead-matcher.h.

template<class M , uint32_t 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 512 of file lookahead-matcher.h.

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

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

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

template<class M , uint32_t 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 550 of file lookahead-matcher.h.

template<class M , uint32_t 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 530 of file lookahead-matcher.h.

template<class M , uint32_t 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 554 of file lookahead-matcher.h.

template<class M , uint32_t 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 567 of file lookahead-matcher.h.

template<class M , uint32_t 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 576 of file lookahead-matcher.h.

template<class M , uint32_t 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 627 of file lookahead-matcher.h.

template<class M , uint32_t 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 563 of file lookahead-matcher.h.

template<class M , uint32_t 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 584 of file lookahead-matcher.h.

template<class M , uint32_t 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 524 of file lookahead-matcher.h.

template<class M , uint32_t 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 528 of file lookahead-matcher.h.

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

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

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

template<class M , uint32_t 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 505 of file lookahead-matcher.h.

template<class M , uint32_t 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 503 of file lookahead-matcher.h.

template<class M , uint32_t 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 522 of file lookahead-matcher.h.

Member Data Documentation

template<class M , uint32_t flags = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class Accum = DefaultAccumulator<typename M::Arc>, class R = LabelReachable<typename M::Arc, Accum>>
constexpr uint32_t fst::LabelLookAheadMatcher< M, flags, Accum, R >::kFlags = flags
static

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


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