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

#include <matcher.h>

Inheritance diagram for fst::SortedMatcher< F >:
Inheritance graph
[legend]
Collaboration diagram for fst::SortedMatcher< F >:
Collaboration graph
[legend]

Public Types

using FST = F
 
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< F::Arc >
using Arc = F::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 SortedMatcher (const FST &fst, MatchType match_type, Label binary_label=1)
 
 SortedMatcher (const FST *fst, MatchType match_type, Label binary_label=1)
 
 SortedMatcher (const SortedMatcher &matcher, bool safe=false)
 
 ~SortedMatcher () override=default
 
SortedMatcherCopy (bool safe=false) const override
 
MatchType Type (bool test) const override
 
void SetState (StateId s) final
 
bool Find (Label match_label) final
 
void LowerBound (Label label)
 
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 inprops) const override
 
size_t Position () const
 
- Public Member Functions inherited from fst::MatcherBase< F::Arc >
virtual ~MatcherBase ()=default
 
virtual uint32_t Flags () const
 

Detailed Description

template<class F>
class fst::SortedMatcher< F >

Definition at line 176 of file matcher.h.

Member Typedef Documentation

template<class F>
using fst::SortedMatcher< F >::Arc = typename FST::Arc

Definition at line 179 of file matcher.h.

template<class F>
using fst::SortedMatcher< F >::FST = F

Definition at line 178 of file matcher.h.

template<class F>
using fst::SortedMatcher< F >::Label = typename Arc::Label

Definition at line 180 of file matcher.h.

template<class F>
using fst::SortedMatcher< F >::StateId = typename Arc::StateId

Definition at line 181 of file matcher.h.

template<class F>
using fst::SortedMatcher< F >::Weight = typename Arc::Weight

Definition at line 182 of file matcher.h.

Constructor & Destructor Documentation

template<class F>
fst::SortedMatcher< F >::SortedMatcher ( const FST fst,
MatchType  match_type,
Label  binary_label = 1 
)
inline

Definition at line 190 of file matcher.h.

template<class F>
fst::SortedMatcher< F >::SortedMatcher ( const FST fst,
MatchType  match_type,
Label  binary_label = 1 
)
inline

Definition at line 198 of file matcher.h.

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

Definition at line 223 of file matcher.h.

template<class F>
fst::SortedMatcher< F >::~SortedMatcher ( )
overridedefault

Member Function Documentation

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

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

Definition at line 237 of file matcher.h.

template<class F>
bool fst::SortedMatcher< F >::Done ( ) const
inlinefinalvirtual

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

Definition at line 301 of file matcher.h.

template<class F>
Weight fst::SortedMatcher< F >::Final ( StateId  s) const
inlinefinalvirtual

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

Definition at line 325 of file matcher.h.

template<class F>
bool fst::SortedMatcher< F >::Find ( Label  match_label)
inlinefinalvirtual

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

Definition at line 270 of file matcher.h.

template<class F>
const FST& fst::SortedMatcher< F >::GetFst ( ) const
inlineoverridevirtual

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

Definition at line 329 of file matcher.h.

template<class F>
void fst::SortedMatcher< F >::LowerBound ( Label  label)
inline

Definition at line 288 of file matcher.h.

template<class F>
void fst::SortedMatcher< F >::Next ( )
inlinefinalvirtual

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

Definition at line 317 of file matcher.h.

template<class F>
size_t fst::SortedMatcher< F >::Position ( ) const
inline

Definition at line 335 of file matcher.h.

template<class F>
ssize_t fst::SortedMatcher< F >::Priority ( StateId  s)
inlinefinalvirtual

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

Definition at line 327 of file matcher.h.

template<class F>
uint64_t fst::SortedMatcher< F >::Properties ( uint64_t  inprops) const
inlineoverridevirtual

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

Definition at line 331 of file matcher.h.

template<class F>
void fst::SortedMatcher< F >::SetState ( StateId  s)
inlinefinalvirtual

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

Definition at line 257 of file matcher.h.

template<class F>
MatchType fst::SortedMatcher< F >::Type ( bool  test) const
inlineoverridevirtual

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

Definition at line 241 of file matcher.h.

template<class F>
const Arc& fst::SortedMatcher< F >::Value ( ) const
inlinefinalvirtual

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

Definition at line 311 of file matcher.h.


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