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

#include <ngram-fst.h>

Inheritance diagram for fst::NGramFstMatcher< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::NGramFstMatcher< A >:
Collaboration graph
[legend]

Public Types

typedef A Arc
 
typedef A::Label Label
 
typedef A::StateId StateId
 
typedef A::Weight Weight
 
- Public Types inherited from fst::MatcherBase< A >
using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 NGramFstMatcher (const NGramFst< A > &fst, MatchType match_type)
 
 NGramFstMatcher (const NGramFst< A > *fst, MatchType match_type)
 
 NGramFstMatcher (const NGramFstMatcher< A > &matcher, bool safe=false)
 
NGramFstMatcher< A > * Copy (bool safe=false) const override
 
MatchType Type (bool test) const override
 
const Fst< A > & GetFst () const override
 
uint64_t Properties (uint64_t props) const override
 
void SetState (StateId s) final
 
bool Find (Label label) final
 
bool Done () const final
 
const ArcValue () const final
 
void Next () final
 
ssize_t Priority (StateId s) final
 
- Public Member Functions inherited from fst::MatcherBase< A >
virtual ~MatcherBase ()=default
 
virtual void SetState (StateId)=0
 
virtual bool Find (Label)=0
 
virtual uint32_t Flags () const
 
virtual Weight Final (StateId s) const
 
virtual ssize_t Priority (StateId s)
 

Detailed Description

template<class A>
class fst::NGramFstMatcher< A >

Definition at line 59 of file ngram-fst.h.

Member Typedef Documentation

template<class A>
typedef A fst::NGramFstMatcher< A >::Arc

Definition at line 819 of file ngram-fst.h.

template<class A>
typedef A::Label fst::NGramFstMatcher< A >::Label

Definition at line 820 of file ngram-fst.h.

template<class A>
typedef A::StateId fst::NGramFstMatcher< A >::StateId

Definition at line 821 of file ngram-fst.h.

template<class A>
typedef A::Weight fst::NGramFstMatcher< A >::Weight

Definition at line 822 of file ngram-fst.h.

Constructor & Destructor Documentation

template<class A>
fst::NGramFstMatcher< A >::NGramFstMatcher ( const NGramFst< A > &  fst,
MatchType  match_type 
)
inline

Definition at line 825 of file ngram-fst.h.

template<class A>
fst::NGramFstMatcher< A >::NGramFstMatcher ( const NGramFst< A > *  fst,
MatchType  match_type 
)
inline

Definition at line 838 of file ngram-fst.h.

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

Definition at line 850 of file ngram-fst.h.

Member Function Documentation

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

Implements fst::MatcherBase< A >.

Definition at line 862 of file ngram-fst.h.

template<class A>
bool fst::NGramFstMatcher< A >::Done ( ) const
inlinefinalvirtual

Implements fst::MatcherBase< A >.

Definition at line 912 of file ngram-fst.h.

template<class A>
bool fst::NGramFstMatcher< A >::Find ( Label  label)
inlinefinal

Definition at line 877 of file ngram-fst.h.

template<class A>
const Fst<A>& fst::NGramFstMatcher< A >::GetFst ( ) const
inlineoverridevirtual

Implements fst::MatcherBase< A >.

Definition at line 868 of file ngram-fst.h.

template<class A>
void fst::NGramFstMatcher< A >::Next ( )
inlinefinalvirtual

Implements fst::MatcherBase< A >.

Definition at line 916 of file ngram-fst.h.

template<class A>
ssize_t fst::NGramFstMatcher< A >::Priority ( StateId  s)
inlinefinal

Definition at line 924 of file ngram-fst.h.

template<class A>
uint64_t fst::NGramFstMatcher< A >::Properties ( uint64_t  props) const
inlineoverridevirtual

Implements fst::MatcherBase< A >.

Definition at line 870 of file ngram-fst.h.

template<class A>
void fst::NGramFstMatcher< A >::SetState ( StateId  s)
inlinefinal

Definition at line 872 of file ngram-fst.h.

template<class A>
MatchType fst::NGramFstMatcher< A >::Type ( bool  test) const
inlineoverridevirtual

Implements fst::MatcherBase< A >.

Definition at line 866 of file ngram-fst.h.

template<class A>
const Arc& fst::NGramFstMatcher< A >::Value ( ) const
inlinefinalvirtual

Implements fst::MatcherBase< A >.

Definition at line 914 of file ngram-fst.h.


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