FST  openfst-1.7.1
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 Properties (uint64 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 ()
 
virtual void SetState (StateId)=0
 
virtual bool Find (Label)=0
 
virtual uint32 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 30 of file ngram-fst.h.

Member Typedef Documentation

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

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

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

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

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

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

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

Definition at line 799 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 802 of file ngram-fst.h.

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

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

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

Definition at line 827 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 839 of file ngram-fst.h.

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

Implements fst::MatcherBase< A >.

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

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

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

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

Implements fst::MatcherBase< A >.

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

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

Implements fst::MatcherBase< A >.

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

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

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

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

Implements fst::MatcherBase< A >.

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

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

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

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

Implements fst::MatcherBase< A >.

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

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

Implements fst::MatcherBase< A >.

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


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