Public Types | Public Member Functions

fst::MultiEpsMatcher< M > Class Template Reference

#include <fst/matcher.h>

Collaboration diagram for fst::MultiEpsMatcher< M >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef M::FST FST
typedef M::Arc Arc
typedef Arc::StateId StateId
typedef Arc::Label Label
typedef Arc::Weight Weight

Public Member Functions

 MultiEpsMatcher (const FST &fst, MatchType match_type, uint32 flags=(kMultiEpsLoop|kMultiEpsList), M *matcher=0, bool own_matcher=true)
 MultiEpsMatcher (const MultiEpsMatcher< M > &matcher, bool safe=false)
 ~MultiEpsMatcher ()
MultiEpsMatcher< M > * 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 ()
const FSTGetFst () const
uint64 Properties (uint64 props) const
uint32 Flags () const
void AddMultiEpsLabel (Label label)
void ClearMultiEpsLabels ()

Detailed Description

template<class M>
class fst::MultiEpsMatcher< M >

MultiEpsMatcher: allows treating multiple non-0 labels as non-consuming labels in addition to 0 that is always non-consuming. Precise behavior controlled by 'flags' argument. By default, the underlying matcher is constructed by MultiEpsMatcher. The user can instead pass in this object; in that case, MultiEpsMatcher takes its ownership iff 'own_matcher' is true.

Definition at line 840 of file matcher.h.


Member Typedef Documentation

template<class M>
typedef M::Arc fst::MultiEpsMatcher< M >::Arc

Definition at line 843 of file matcher.h.

template<class M>
typedef M::FST fst::MultiEpsMatcher< M >::FST

Definition at line 842 of file matcher.h.

template<class M>
typedef Arc::Label fst::MultiEpsMatcher< M >::Label

Definition at line 845 of file matcher.h.

template<class M>
typedef Arc::StateId fst::MultiEpsMatcher< M >::StateId

Definition at line 844 of file matcher.h.

template<class M>
typedef Arc::Weight fst::MultiEpsMatcher< M >::Weight

Definition at line 846 of file matcher.h.


Constructor & Destructor Documentation

template<class M>
fst::MultiEpsMatcher< M >::MultiEpsMatcher ( const FST fst,
MatchType  match_type,
uint32  flags = (kMultiEpsLoop | kMultiEpsList),
M *  matcher = 0,
bool  own_matcher = true 
) [inline]

Definition at line 848 of file matcher.h.

template<class M>
fst::MultiEpsMatcher< M >::MultiEpsMatcher ( const MultiEpsMatcher< M > &  matcher,
bool  safe = false 
) [inline]

Definition at line 865 of file matcher.h.

template<class M>
fst::MultiEpsMatcher< M >::~MultiEpsMatcher (  )  [inline]

Definition at line 874 of file matcher.h.


Member Function Documentation

template<class M>
void fst::MultiEpsMatcher< M >::AddMultiEpsLabel ( Label  label  )  [inline]

Definition at line 926 of file matcher.h.

template<class M>
void fst::MultiEpsMatcher< M >::ClearMultiEpsLabels (  )  [inline]

Definition at line 932 of file matcher.h.

template<class M>
MultiEpsMatcher<M>* fst::MultiEpsMatcher< M >::Copy ( bool  safe = false  )  const [inline]

Definition at line 879 of file matcher.h.

template<class M>
bool fst::MultiEpsMatcher< M >::Done (  )  const [inline]

Definition at line 892 of file matcher.h.

template<class M >
bool fst::MultiEpsMatcher< M >::Find ( Label  match_label  )  [inline]

Definition at line 958 of file matcher.h.

template<class M>
uint32 fst::MultiEpsMatcher< M >::Flags (  )  const [inline]

Definition at line 924 of file matcher.h.

template<class M>
const FST& fst::MultiEpsMatcher< M >::GetFst (  )  const [inline]

Definition at line 920 of file matcher.h.

template<class M>
void fst::MultiEpsMatcher< M >::Next (  )  [inline]

Definition at line 900 of file matcher.h.

template<class M>
uint64 fst::MultiEpsMatcher< M >::Properties ( uint64  props  )  const [inline]

Definition at line 922 of file matcher.h.

template<class M>
void fst::MultiEpsMatcher< M >::SetState ( StateId  s  )  [inline]

Definition at line 885 of file matcher.h.

template<class M>
MatchType fst::MultiEpsMatcher< M >::Type ( bool  test  )  const [inline]

Definition at line 883 of file matcher.h.

template<class M>
const Arc& fst::MultiEpsMatcher< M >::Value (  )  const [inline]

Definition at line 896 of file matcher.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines