FST  openfst-1.8.1
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 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 602 of file matcher.h.

Member Typedef Documentation

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

Definition at line 605 of file matcher.h.

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

Definition at line 604 of file matcher.h.

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

Definition at line 606 of file matcher.h.

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

Definition at line 607 of file matcher.h.

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

Definition at line 608 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 611 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 636 of file matcher.h.

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

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

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

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

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

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

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

Definition at line 759 of file matcher.h.

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

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

Definition at line 732 of file matcher.h.

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

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

Definition at line 728 of file matcher.h.

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

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

Definition at line 696 of file matcher.h.

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

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

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

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

Definition at line 807 of file matcher.h.

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

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

Definition at line 659 of file matcher.h.

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

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

Definition at line 657 of file matcher.h.

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

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

Definition at line 670 of file matcher.h.


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