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

#include <phi-fst.h>

Inheritance diagram for fst::PhiFstMatcher< M, flags >:
Inheritance graph
[legend]
Collaboration diagram for fst::PhiFstMatcher< 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::PhiFstMatcherData< Label >
 
- Public Types inherited from fst::PhiMatcher< 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

 PhiFstMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::make_shared< MatcherData >())
 
 PhiFstMatcher (const PhiFstMatcher< M, flags > &matcher, bool safe=false)
 
PhiFstMatcher< M, flags > * Copy (bool safe=false) const override
 
const MatcherDataGetData () const
 
std::shared_ptr< MatcherDataGetSharedData () const
 
- Public Member Functions inherited from fst::PhiMatcher< M >
 PhiMatcher (const FST &fst, MatchType match_type, Label phi_label=kNoLabel, bool phi_loop=true, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=nullptr)
 
 PhiMatcher (const PhiMatcher< M > &matcher, bool safe=false)
 
PhiMatcher< 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 PhiLabel () const
 
- Public Member Functions inherited from fst::MatcherBase< M::Arc >
virtual ~MatcherBase ()
 

Detailed Description

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
class fst::PhiFstMatcher< M, flags >

Definition at line 82 of file phi-fst.h.

Member Typedef Documentation

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::Arc = typename M::Arc

Definition at line 85 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::FST = typename M::FST

Definition at line 84 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::Label = typename Arc::Label

Definition at line 87 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::MatcherData = internal::PhiFstMatcherData<Label>

Definition at line 89 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::StateId = typename Arc::StateId

Definition at line 86 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
using fst::PhiFstMatcher< M, flags >::Weight = typename Arc::Weight

Definition at line 88 of file phi-fst.h.

Member Enumeration Documentation

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
anonymous enum : uint8
Enumerator
kFlags 

Definition at line 91 of file phi-fst.h.

Constructor & Destructor Documentation

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

Definition at line 93 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
fst::PhiFstMatcher< M, flags >::PhiFstMatcher ( const PhiFstMatcher< M, flags > &  matcher,
bool  safe = false 
)
inline

Definition at line 102 of file phi-fst.h.

Member Function Documentation

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
PhiFstMatcher<M, flags>* fst::PhiFstMatcher< M, flags >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

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

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
const MatcherData* fst::PhiFstMatcher< M, flags >::GetData ( ) const
inline

Definition at line 109 of file phi-fst.h.

template<class M, uint8 flags = kPhiFstMatchInput | kPhiFstMatchOutput>
std::shared_ptr<MatcherData> fst::PhiFstMatcher< M, flags >::GetSharedData ( ) const
inline

Definition at line 111 of file phi-fst.h.


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