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

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 &matcher, bool safe=false)
 
RhoMatcherCopy (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
 
Label RhoLabel () 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 = kRhoFstMatchInput | kRhoFstMatchOutput>
class fst::RhoFstMatcher< M, flags >

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

Member Data Documentation

template<class M, uint8_t flags = kRhoFstMatchInput | kRhoFstMatchOutput>
constexpr uint8_t fst::RhoFstMatcher< M, flags >::kFlags = flags
static

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


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