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

#include <sigma-fst.h>

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

Public Types

enum  : uint8 { kFlags = flags }
 
using FST = typename M::FST
 
using Arc = typename M::Arc
 
using StateId = typename Arc::StateId
 
using Label = typename Arc::Label
 
using Weight = typename Arc::Weight
 
using MatcherData = internal::SigmaFstMatcherData< Label >
 
- Public Types inherited from fst::SigmaMatcher< M >
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
 
- Public Types inherited from fst::MatcherBase< M::Arc >
using Arc = M::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 SigmaFstMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::make_shared< MatcherData >())
 
 SigmaFstMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::make_shared< MatcherData >())
 
 SigmaFstMatcher (const SigmaFstMatcher< M, flags > &matcher, bool safe=false)
 
SigmaFstMatcher< M, flags > * Copy (bool safe=false) const override
 
const MatcherDataGetData () const
 
std::shared_ptr< MatcherDataGetSharedData () const
 
- Public Member Functions inherited from fst::SigmaMatcher< M >
 SigmaMatcher (const FST &fst, MatchType match_type, Label sigma_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=nullptr)
 
 SigmaMatcher (const FST *fst, MatchType match_type, Label sigma_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=nullptr)
 
 SigmaMatcher (const SigmaMatcher< M > &matcher, bool safe=false)
 
SigmaMatcher< M > * Copy (bool safe=false) const override
 
MatchType Type (bool test) const override
 
void SetState (StateId s) final
 
bool Find (Label match_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
 
Label SigmaLabel () const
 
- Public Member Functions inherited from fst::MatcherBase< M::Arc >
virtual ~MatcherBase ()
 

Detailed Description

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
class fst::SigmaFstMatcher< M, flags >

Definition at line 71 of file sigma-fst.h.

Member Typedef Documentation

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::Arc = typename M::Arc

Definition at line 74 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::FST = typename M::FST

Definition at line 73 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::Label = typename Arc::Label

Definition at line 76 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::MatcherData = internal::SigmaFstMatcherData<Label>

Definition at line 78 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::StateId = typename Arc::StateId

Definition at line 75 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
using fst::SigmaFstMatcher< M, flags >::Weight = typename Arc::Weight

Definition at line 77 of file sigma-fst.h.

Member Enumeration Documentation

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
anonymous enum : uint8
Enumerator
kFlags 

Definition at line 80 of file sigma-fst.h.

Constructor & Destructor Documentation

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
fst::SigmaFstMatcher< M, flags >::SigmaFstMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::make_shared<MatcherData>() 
)
inline

Definition at line 83 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
fst::SigmaFstMatcher< M, flags >::SigmaFstMatcher ( const FST fst,
MatchType  match_type,
std::shared_ptr< MatcherData data = std::make_shared<MatcherData>() 
)
inline

Definition at line 94 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
fst::SigmaFstMatcher< M, flags >::SigmaFstMatcher ( const SigmaFstMatcher< M, flags > &  matcher,
bool  safe = false 
)
inline

Definition at line 105 of file sigma-fst.h.

Member Function Documentation

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
SigmaFstMatcher<M, flags>* fst::SigmaFstMatcher< M, flags >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

Definition at line 108 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
const MatcherData* fst::SigmaFstMatcher< M, flags >::GetData ( ) const
inline

Definition at line 112 of file sigma-fst.h.

template<class M, uint8 flags = kSigmaFstMatchInput | kSigmaFstMatchOutput>
std::shared_ptr<MatcherData> fst::SigmaFstMatcher< M, flags >::GetSharedData ( ) const
inline

Definition at line 114 of file sigma-fst.h.


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