FST  openfst-1.6.9
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< 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>
class fst::PhiMatcher< M >

Definition at line 579 of file matcher.h.

Member Typedef Documentation

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

Definition at line 582 of file matcher.h.

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

Definition at line 581 of file matcher.h.

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

Definition at line 583 of file matcher.h.

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

Definition at line 584 of file matcher.h.

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

Definition at line 585 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 588 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 613 of file matcher.h.

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

Definition at line 622 of file matcher.h.

Member Function Documentation

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

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

Definition at line 631 of file matcher.h.

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

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

Definition at line 646 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 676 of file matcher.h.

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

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

Definition at line 737 of file matcher.h.

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

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

Definition at line 710 of file matcher.h.

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

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

Definition at line 706 of file matcher.h.

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

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

Definition at line 674 of file matcher.h.

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

Definition at line 717 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 696 of file matcher.h.

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

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

Definition at line 785 of file matcher.h.

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

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

Definition at line 637 of file matcher.h.

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

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

Definition at line 635 of file matcher.h.

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

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

Definition at line 648 of file matcher.h.


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