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

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 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 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 &matcher, bool safe=false)
 
PhiMatcherCopy (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_t Properties (uint64_t props) const override
 
uint32_t Flags () const override
 
Label PhiLabel () const
 
- Public Member Functions inherited from fst::MatcherBase< M::Arc >
virtual ~MatcherBase ()=default
 

Static Public Attributes

static constexpr uint8_t kFlags = flags
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

template<class M, uint8_t 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 118 of file phi-fst.h.

template<class M, uint8_t 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 129 of file phi-fst.h.

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

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

Member Function Documentation

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

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

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

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

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

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

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

Member Data Documentation

template<class M, uint8_t flags = kPhiFstMatchInput | kPhiFstMatchOutput>
constexpr uint8_t fst::PhiFstMatcher< M, flags >::kFlags = flags
static

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


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