FST  openfst-1.7.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 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 36 of file compose.h.

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

Definition at line 51 of file compose.h.

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

Definition at line 66 of file compose.h.

Member Function Documentation

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

Definition at line 113 of file compose.h.

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

Definition at line 105 of file compose.h.

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

Definition at line 139 of file compose.h.

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

Definition at line 137 of file compose.h.

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

Definition at line 76 of file compose.h.

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

Definition at line 89 of file compose.h.

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

Definition at line 95 of file compose.h.

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

Definition at line 169 of file compose.h.

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

Definition at line 103 of file compose.h.

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

Definition at line 99 of file compose.h.

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

Definition at line 143 of file compose.h.

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

Definition at line 141 of file compose.h.

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

Definition at line 200 of file compose.h.

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

Definition at line 97 of file compose.h.

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

Definition at line 101 of file compose.h.

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

Definition at line 129 of file compose.h.

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

Definition at line 121 of file compose.h.

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

Definition at line 82 of file compose.h.

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

Definition at line 80 of file compose.h.

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

Definition at line 91 of file compose.h.


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