FST  openfst-1.8.3
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 54 of file compose.h.

Member Typedef Documentation

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

Definition at line 58 of file compose.h.

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

Definition at line 56 of file compose.h.

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

Definition at line 59 of file compose.h.

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

Definition at line 57 of file compose.h.

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

Definition at line 60 of file compose.h.

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

Definition at line 61 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 64 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 79 of file compose.h.

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

Definition at line 94 of file compose.h.

Member Function Documentation

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

Definition at line 143 of file compose.h.

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

Definition at line 135 of file compose.h.

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

Definition at line 169 of file compose.h.

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

Definition at line 167 of file compose.h.

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

Definition at line 104 of file compose.h.

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

Definition at line 117 of file compose.h.

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

Definition at line 123 of file compose.h.

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

Definition at line 199 of file compose.h.

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

Definition at line 133 of file compose.h.

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

Definition at line 127 of file compose.h.

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

Definition at line 173 of file compose.h.

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

Definition at line 171 of file compose.h.

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

Definition at line 230 of file compose.h.

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

Definition at line 125 of file compose.h.

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

Definition at line 129 of file compose.h.

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

Definition at line 159 of file compose.h.

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

Definition at line 151 of file compose.h.

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

Definition at line 110 of file compose.h.

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

Definition at line 108 of file compose.h.

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

Definition at line 119 of file compose.h.


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