FST  openfst-1.8.2.post1
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_t flags=(kParenLoop|kParenList))
 
 ParenMatcher (const FST *fst, MatchType match_type, uint32_t 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_t Properties (uint64_t props) const
 
uint32_t 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 41 of file compose.h.

Member Typedef Documentation

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

Definition at line 45 of file compose.h.

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

Definition at line 43 of file compose.h.

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

Definition at line 46 of file compose.h.

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

Definition at line 44 of file compose.h.

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

Definition at line 47 of file compose.h.

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

Definition at line 48 of file compose.h.

Constructor & Destructor Documentation

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

Definition at line 51 of file compose.h.

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

Definition at line 66 of file compose.h.

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

Definition at line 81 of file compose.h.

Member Function Documentation

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

Definition at line 130 of file compose.h.

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

Definition at line 122 of file compose.h.

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

Definition at line 156 of file compose.h.

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

Definition at line 154 of file compose.h.

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

Definition at line 91 of file compose.h.

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

Definition at line 104 of file compose.h.

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

Definition at line 110 of file compose.h.

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

Definition at line 186 of file compose.h.

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

Definition at line 120 of file compose.h.

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

Definition at line 114 of file compose.h.

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

Definition at line 160 of file compose.h.

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

Definition at line 158 of file compose.h.

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

Definition at line 217 of file compose.h.

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

Definition at line 112 of file compose.h.

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

Definition at line 116 of file compose.h.

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

Definition at line 146 of file compose.h.

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

Definition at line 138 of file compose.h.

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

Definition at line 97 of file compose.h.

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

Definition at line 95 of file compose.h.

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

Definition at line 106 of file compose.h.


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