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

#include <compose.h>

Public Types

using FST = F
 
using M = SortedMatcher< FST >
 
using Arc = typename FST::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 ParenMatcher (const FST &fst, MatchType match_type, uint32 flags=(kParenLoop|kParenList))
 
 ParenMatcher (const ParenMatcher< FST > &matcher, bool safe=false)
 
ParenMatcher< FST > * Copy (bool safe=false) const
 
MatchType Type (bool test) const
 
void SetState (StateId s)
 
bool Find (Label match_label)
 
bool Done () const
 
const ArcValue () const
 
void Next ()
 
Weight Final (StateId s)
 
ssize_t Priority (StateId s)
 
const FSTGetFst () const
 
uint64 Properties (uint64 props) const
 
uint32 Flags () const
 
void AddOpenParen (Label label)
 
void AddCloseParen (Label label)
 
void RemoveOpenParen (Label label)
 
void RemoveCloseParen (Label label)
 
void ClearOpenParens ()
 
void ClearCloseParens ()
 
bool IsOpenParen (Label label) const
 
bool IsCloseParen (Label label) const
 

Detailed Description

template<class F>
class fst::ParenMatcher< F >

Definition at line 26 of file compose.h.

Member Typedef Documentation

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

Definition at line 30 of file compose.h.

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

Definition at line 28 of file compose.h.

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

Definition at line 31 of file compose.h.

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

Definition at line 29 of file compose.h.

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

Definition at line 32 of file compose.h.

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

Definition at line 33 of file compose.h.

Constructor & Destructor Documentation

template<class F>
fst::ParenMatcher< F >::ParenMatcher ( const FST fst,
MatchType  match_type,
uint32  flags = (kParenLoop | kParenList) 
)
inline

Definition at line 35 of file compose.h.

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

Definition at line 49 of file compose.h.

Member Function Documentation

template<class F>
void fst::ParenMatcher< F >::AddCloseParen ( Label  label)
inline

Definition at line 96 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::AddOpenParen ( Label  label)
inline

Definition at line 88 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::ClearCloseParens ( )
inline

Definition at line 122 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::ClearOpenParens ( )
inline

Definition at line 120 of file compose.h.

template<class F>
ParenMatcher<FST>* fst::ParenMatcher< F >::Copy ( bool  safe = false) const
inline

Definition at line 59 of file compose.h.

template<class F>
bool fst::ParenMatcher< F >::Done ( ) const
inline

Definition at line 72 of file compose.h.

template<class F>
Weight fst::ParenMatcher< F >::Final ( StateId  s)
inline

Definition at line 78 of file compose.h.

template<class FST >
bool fst::ParenMatcher< FST >::Find ( Label  match_label)
inline

Definition at line 152 of file compose.h.

template<class F>
uint32 fst::ParenMatcher< F >::Flags ( ) const
inline

Definition at line 86 of file compose.h.

template<class F>
const FST& fst::ParenMatcher< F >::GetFst ( ) const
inline

Definition at line 82 of file compose.h.

template<class F>
bool fst::ParenMatcher< F >::IsCloseParen ( Label  label) const
inline

Definition at line 126 of file compose.h.

template<class F>
bool fst::ParenMatcher< F >::IsOpenParen ( Label  label) const
inline

Definition at line 124 of file compose.h.

template<class FST >
void fst::ParenMatcher< FST >::Next ( )
inline

Definition at line 183 of file compose.h.

template<class F>
ssize_t fst::ParenMatcher< F >::Priority ( StateId  s)
inline

Definition at line 80 of file compose.h.

template<class F>
uint64 fst::ParenMatcher< F >::Properties ( uint64  props) const
inline

Definition at line 84 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::RemoveCloseParen ( Label  label)
inline

Definition at line 112 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::RemoveOpenParen ( Label  label)
inline

Definition at line 104 of file compose.h.

template<class F>
void fst::ParenMatcher< F >::SetState ( StateId  s)
inline

Definition at line 65 of file compose.h.

template<class F>
MatchType fst::ParenMatcher< F >::Type ( bool  test) const
inline

Definition at line 63 of file compose.h.

template<class F>
const Arc& fst::ParenMatcher< F >::Value ( ) const
inline

Definition at line 74 of file compose.h.


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