Public Types | Public Member Functions

fst::LabelLookAheadMatcher< M, F, S > Class Template Reference

#include <fst/lookahead-matcher.h>

Inherits LookAheadMatcherBase< M::FST::Arc >.

Collaboration diagram for fst::LabelLookAheadMatcher< M, F, S >:
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
typedef LabelReachableData< LabelMatcherData

Public Member Functions

 LabelLookAheadMatcher (const FST &fst, MatchType match_type, MatcherData *data=0, S *s=0)
 LabelLookAheadMatcher (const LabelLookAheadMatcher< M, F, S > &lmatcher, bool safe=false)
 ~LabelLookAheadMatcher ()
LabelLookAheadMatcher< M, F, S > * Copy (bool safe=false) const
 General matcher methods.
MatchType Type (bool test) const
void SetState (StateId s)
bool Find (Label label)
bool Done () const
const ArcValue () const
void Next ()
const FSTGetFst () const
uint64 Properties (uint64 props) const
uint32 Flags () const
MatcherDataGetData () const
 Writable matcher methods.
bool LookAheadLabel (Label label) const
 Look-ahead methods.
template<class L >
bool LookAheadFst (const L &fst, StateId s)
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false)
template<class L >
void InitLookAheadFst (const L &fst, bool copy=false)

Detailed Description

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
class fst::LabelLookAheadMatcher< M, F, S >

Template argument F accepts flags to control behavior. It must include precisely one of KInputLookAheadMatcher or KOutputLookAheadMatcher.

Definition at line 421 of file lookahead-matcher.h.


Member Typedef Documentation

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef M::Arc fst::LabelLookAheadMatcher< M, F, S >::Arc

Reimplemented from fst::LookAheadMatcherBase< M::FST::Arc >.

Definition at line 425 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef M::FST fst::LabelLookAheadMatcher< M, F, S >::FST

Definition at line 424 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef Arc::Label fst::LabelLookAheadMatcher< M, F, S >::Label

Reimplemented from fst::LookAheadMatcherBase< M::FST::Arc >.

Definition at line 427 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef LabelReachableData<Label> fst::LabelLookAheadMatcher< M, F, S >::MatcherData

Definition at line 429 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef Arc::StateId fst::LabelLookAheadMatcher< M, F, S >::StateId

Reimplemented from fst::LookAheadMatcherBase< M::FST::Arc >.

Definition at line 426 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
typedef Arc::Weight fst::LabelLookAheadMatcher< M, F, S >::Weight

Reimplemented from fst::LookAheadMatcherBase< M::FST::Arc >.

Definition at line 428 of file lookahead-matcher.h.


Constructor & Destructor Documentation

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
fst::LabelLookAheadMatcher< M, F, S >::LabelLookAheadMatcher ( const FST fst,
MatchType  match_type,
MatcherData data = 0,
S *  s = 0 
) [inline]

Definition at line 436 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
fst::LabelLookAheadMatcher< M, F, S >::LabelLookAheadMatcher ( const LabelLookAheadMatcher< M, F, S > &  lmatcher,
bool  safe = false 
) [inline]

Definition at line 454 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
fst::LabelLookAheadMatcher< M, F, S >::~LabelLookAheadMatcher (  )  [inline]

Definition at line 465 of file lookahead-matcher.h.


Member Function Documentation

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
LabelLookAheadMatcher<M, F, S>* fst::LabelLookAheadMatcher< M, F, S >::Copy ( bool  safe = false  )  const [inline, virtual]

General matcher methods.

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

Definition at line 470 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
bool fst::LabelLookAheadMatcher< M, F, S >::Done (  )  const [inline]

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

Definition at line 492 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
bool fst::LabelLookAheadMatcher< M, F, S >::Find ( Label  label  )  [inline]

Definition at line 484 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
uint32 fst::LabelLookAheadMatcher< M, F, S >::Flags (  )  const [inline, virtual]

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

Definition at line 498 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
MatcherData* fst::LabelLookAheadMatcher< M, F, S >::GetData (  )  const [inline]

Writable matcher methods.

Definition at line 508 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
const FST& fst::LabelLookAheadMatcher< M, F, S >::GetFst (  )  const [inline, virtual]

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

Definition at line 495 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
void fst::LabelLookAheadMatcher< M, F, S >::InitLookAheadFst ( const Fst< Arc > &  fst,
bool  copy = false 
) [inline]

Definition at line 533 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
template<class L >
void fst::LabelLookAheadMatcher< M, F, S >::InitLookAheadFst ( const L &  fst,
bool  copy = false 
) [inline]

Definition at line 540 of file lookahead-matcher.h.

template<class M , uint32 F, class S >
template<class L >
bool fst::LabelLookAheadMatcher< M, F, S >::LookAheadFst ( const L &  fst,
StateId  s 
) [inline]

Checks if there is a matching (possibly super-final) transition at (s_, s).

Definition at line 571 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
bool fst::LabelLookAheadMatcher< M, F, S >::LookAheadLabel ( Label  label  )  const [inline]

Look-ahead methods.

Definition at line 513 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
void fst::LabelLookAheadMatcher< M, F, S >::Next (  )  [inline]

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

Definition at line 494 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
uint64 fst::LabelLookAheadMatcher< M, F, S >::Properties ( uint64  props  )  const [inline, virtual]

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

Definition at line 496 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
void fst::LabelLookAheadMatcher< M, F, S >::SetState ( StateId  s  )  [inline]

Definition at line 476 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
MatchType fst::LabelLookAheadMatcher< M, F, S >::Type ( bool  test  )  const [inline, virtual]

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

Definition at line 474 of file lookahead-matcher.h.

template<class M, uint32 F = kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix | kLookAheadNonEpsilonPrefix | kLookAheadKeepRelabelData, class S = DefaultAccumulator<typename M::Arc>>
const Arc& fst::LabelLookAheadMatcher< M, F, S >::Value (  )  const [inline]

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

Definition at line 493 of file lookahead-matcher.h.


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