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

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=nullptr)
 
 ArcLookAheadMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=nullptr)
 
 ArcLookAheadMatcher (const ArcLookAheadMatcher &lmatcher, bool safe=false)
 
ArcLookAheadMatcherCopy (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
 
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 ()=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 = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
class fst::ArcLookAheadMatcher< M, flags >

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Member Data Documentation

template<class M , uint32_t flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
constexpr uint32_t fst::ArcLookAheadMatcher< M, flags >::kFlags = flags
static

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


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