FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::PhiMatcher< M > Class Template Reference

#include <matcher.h>

Inheritance diagram for fst::PhiMatcher< M >:
Inheritance graph
[legend]
Collaboration diagram for fst::PhiMatcher< M >:
Collaboration graph
[legend]

Public Types

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

 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
 

Detailed Description

template<class M>
class fst::PhiMatcher< M >

Definition at line 606 of file matcher.h.

Member Typedef Documentation

template<class M >
using fst::PhiMatcher< M >::Arc = typename FST::Arc

Definition at line 609 of file matcher.h.

template<class M >
using fst::PhiMatcher< M >::FST = typename M::FST

Definition at line 608 of file matcher.h.

template<class M >
using fst::PhiMatcher< M >::Label = typename Arc::Label

Definition at line 610 of file matcher.h.

template<class M >
using fst::PhiMatcher< M >::StateId = typename Arc::StateId

Definition at line 611 of file matcher.h.

template<class M >
using fst::PhiMatcher< M >::Weight = typename Arc::Weight

Definition at line 612 of file matcher.h.

Constructor & Destructor Documentation

template<class M >
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 
)
inline

Definition at line 615 of file matcher.h.

template<class M >
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 
)
inline

Definition at line 640 of file matcher.h.

template<class M >
fst::PhiMatcher< M >::PhiMatcher ( const PhiMatcher< M > &  matcher,
bool  safe = false 
)
inline

Definition at line 648 of file matcher.h.

Member Function Documentation

template<class M >
PhiMatcher* fst::PhiMatcher< M >::Copy ( bool  safe = false) const
inlineoverridevirtual

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

Definition at line 657 of file matcher.h.

template<class M >
bool fst::PhiMatcher< M >::Done ( ) const
inlinefinalvirtual

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

Definition at line 672 of file matcher.h.

template<class M >
Weight fst::PhiMatcher< M >::Final ( StateId  s) const
inlinefinalvirtual

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 702 of file matcher.h.

template<class M >
bool fst::PhiMatcher< M >::Find ( Label  match_label)
inlinefinalvirtual

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

Definition at line 763 of file matcher.h.

template<class M >
uint32_t fst::PhiMatcher< M >::Flags ( ) const
inlineoverridevirtual

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 736 of file matcher.h.

template<class M >
const FST& fst::PhiMatcher< M >::GetFst ( ) const
inlineoverridevirtual

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

Definition at line 732 of file matcher.h.

template<class M >
void fst::PhiMatcher< M >::Next ( )
inlinefinalvirtual

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

Definition at line 700 of file matcher.h.

template<class M >
Label fst::PhiMatcher< M >::PhiLabel ( ) const
inline

Definition at line 743 of file matcher.h.

template<class M >
ssize_t fst::PhiMatcher< M >::Priority ( StateId  s)
inlinefinalvirtual

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 722 of file matcher.h.

template<class M >
uint64_t fst::PhiMatcher< M >::Properties ( uint64_t  props) const
inlineoverridevirtual

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

Definition at line 811 of file matcher.h.

template<class M >
void fst::PhiMatcher< M >::SetState ( StateId  s)
inlinefinalvirtual

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

Definition at line 663 of file matcher.h.

template<class M >
MatchType fst::PhiMatcher< M >::Type ( bool  test) const
inlineoverridevirtual

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

Definition at line 661 of file matcher.h.

template<class M >
const Arc& fst::PhiMatcher< M >::Value ( ) const
inlinefinalvirtual

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

Definition at line 674 of file matcher.h.


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