Public Types | Public Member Functions

fst::SigmaMatcher< M > Class Template Reference

#include <fst/matcher.h>

Inherits MatcherBase< M::Arc >.

Collaboration diagram for fst::SigmaMatcher< 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

 SigmaMatcher (const FST &fst, MatchType match_type, Label sigma_label=kNoLabel, MatcherRewriteMode rewrite_mode=MATCHER_REWRITE_AUTO, M *matcher=0)
 SigmaMatcher (const SigmaMatcher< M > &matcher, bool safe=false)
virtual ~SigmaMatcher ()
virtual SigmaMatcher< M > * Copy (bool safe=false) const
virtual MatchType Type (bool test) const
void SetState (StateId s)
bool Find (Label match_label)
bool Done () const
const ArcValue () const
void Next ()
virtual const FSTGetFst () const
virtual uint64 Properties (uint64 props) const

Detailed Description

template<class M>
class fst::SigmaMatcher< M >

For any requested label, this matcher considers all transitions that match the label 'sigma_label' (sigma = "any"), and this in additions to transitions with the requested label. Each such sigma transition found is returned with the sigma_label rewritten as the requested label (both sides if an acceptor, or if 'rewrite_both' is true and both input and output labels of the found transition are 'sigma_label'). If 'sigma_label' is kNoLabel, this special matching is not done. SigmaMatcher is templated itself on a matcher, which is used to perform the underlying matching. By default, the underlying matcher is constructed by SigmaMatcher. The user can instead pass in this object; in that case, SigmaMatcher takes its ownership.

Definition at line 486 of file matcher.h.


Member Typedef Documentation

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 489 of file matcher.h.

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

Definition at line 488 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 491 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 490 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 492 of file matcher.h.


Constructor & Destructor Documentation

template<class M>
fst::SigmaMatcher< M >::SigmaMatcher ( const FST fst,
MatchType  match_type,
Label  sigma_label = kNoLabel,
MatcherRewriteMode  rewrite_mode = MATCHER_REWRITE_AUTO,
M *  matcher = 0 
) [inline]

Definition at line 494 of file matcher.h.

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

Definition at line 515 of file matcher.h.

template<class M>
virtual fst::SigmaMatcher< M >::~SigmaMatcher (  )  [inline, virtual]

Definition at line 521 of file matcher.h.


Member Function Documentation

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

Implements fst::MatcherBase< M::Arc >.

Definition at line 525 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 554 of file matcher.h.

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

Definition at line 537 of file matcher.h.

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

Implements fst::MatcherBase< M::Arc >.

Definition at line 586 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 577 of file matcher.h.

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

Implements fst::MatcherBase< M::Arc >.

Definition at line 610 of file matcher.h.

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

Definition at line 531 of file matcher.h.

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

Implements fst::MatcherBase< M::Arc >.

Definition at line 529 of file matcher.h.

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

Reimplemented from fst::MatcherBase< M::Arc >.

Definition at line 558 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