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

#include <rho-fst.h>

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

 RhoFstMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::make_shared< MatcherData >())
 
 RhoFstMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::make_shared< MatcherData >())
 
 RhoFstMatcher (const RhoFstMatcher< M, flags > &matcher, bool safe=false)
 
RhoFstMatcher< M, flags > * Copy (bool safe=false) const override
 
const MatcherDataGetData () const
 
std::shared_ptr< MatcherDataGetSharedData () const
 
- Public Member Functions inherited from fst::RhoMatcher< M >
 RhoMatcher (const FST &fst, MatchType match_type, Label rho_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=nullptr)
 
 RhoMatcher (const FST *fst, MatchType match_type, Label rho_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=nullptr)
 
 RhoMatcher (const RhoMatcher< M > &matcher, bool safe=false)
 
RhoMatcher< M > * Copy (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 Properties (uint64 props) const override
 
uint32 Flags () const override
 
Label RhoLabel () const
 
- Public Member Functions inherited from fst::MatcherBase< M::Arc >
virtual ~MatcherBase ()
 

Detailed Description

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
class fst::RhoFstMatcher< M, flags >

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

Member Typedef Documentation

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::Arc = typename M::Arc

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::FST = typename M::FST

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::Label = typename Arc::Label

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::MatcherData = internal::RhoFstMatcherData<Label>

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::StateId = typename Arc::StateId

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
using fst::RhoFstMatcher< M, flags >::Weight = typename Arc::Weight

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

Member Enumeration Documentation

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
anonymous enum : uint8
Enumerator
kFlags 

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

Constructor & Destructor Documentation

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

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

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

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
fst::RhoFstMatcher< M, flags >::RhoFstMatcher ( const RhoFstMatcher< M, flags > &  matcher,
bool  safe = false 
)
inline

Definition at line 103 of file rho-fst.h.

Member Function Documentation

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
RhoFstMatcher<M, flags>* fst::RhoFstMatcher< M, flags >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
const MatcherData* fst::RhoFstMatcher< M, flags >::GetData ( ) const
inline

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

template<class M, uint8 flags = kRhoFstMatchInput | kRhoFstMatchOutput>
std::shared_ptr<MatcherData> fst::RhoFstMatcher< M, flags >::GetSharedData ( ) const
inline

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


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