Public Types | Public Member Functions

fst::ArcLookAheadMatcher< M, F > Class Template Reference

#include <fst/lookahead-matcher.h>

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

Collaboration diagram for fst::ArcLookAheadMatcher< M, F >:
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 NullAddOn MatcherData

Public Member Functions

 ArcLookAheadMatcher (const FST &fst, MatchType match_type, MatcherData *data=0)
 ArcLookAheadMatcher (const ArcLookAheadMatcher< M, F > &lmatcher, bool safe=false)
ArcLookAheadMatcher< M, F > * 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.
bool LookAheadFst (const Fst< Arc > &fst, StateId s)
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false)

Detailed Description

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
class fst::ArcLookAheadMatcher< M, F >

Look-ahead of one transition. Template argument F accepts flags to control behavior.

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


Member Typedef Documentation

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef M::Arc fst::ArcLookAheadMatcher< M, F >::Arc

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef M::FST fst::ArcLookAheadMatcher< M, F >::FST

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef Arc::Label fst::ArcLookAheadMatcher< M, F >::Label

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef NullAddOn fst::ArcLookAheadMatcher< M, F >::MatcherData

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef Arc::StateId fst::ArcLookAheadMatcher< M, F >::StateId

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
typedef Arc::Weight fst::ArcLookAheadMatcher< M, F >::Weight

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

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


Constructor & Destructor Documentation

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
fst::ArcLookAheadMatcher< M, F >::ArcLookAheadMatcher ( const FST fst,
MatchType  match_type,
MatcherData data = 0 
) [inline]

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
fst::ArcLookAheadMatcher< M, F >::ArcLookAheadMatcher ( const ArcLookAheadMatcher< M, F > &  lmatcher,
bool  safe = false 
) [inline]

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


Member Function Documentation

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
ArcLookAheadMatcher<M, F>* fst::ArcLookAheadMatcher< M, F >::Copy ( bool  safe = false  )  const [inline, virtual]

General matcher methods.

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, F >::Done (  )  const [inline]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, F >::Find ( Label  label  )  [inline]

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
uint32 fst::ArcLookAheadMatcher< M, F >::Flags (  )  const [inline, virtual]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
MatcherData* fst::ArcLookAheadMatcher< M, F >::GetData (  )  const [inline]

Writable matcher methods.

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
const FST& fst::ArcLookAheadMatcher< M, F >::GetFst (  )  const [inline, virtual]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, F >::InitLookAheadFst ( const Fst< Arc > &  fst,
bool  copy = false 
) [inline]

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

template<class M , uint32 F>
bool fst::ArcLookAheadMatcher< M, F >::LookAheadFst ( const Fst< Arc > &  fst,
StateId  s 
)

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
bool fst::ArcLookAheadMatcher< M, F >::LookAheadLabel ( Label  label  )  const [inline]

Look-ahead methods.

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, F >::Next (  )  [inline]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
uint64 fst::ArcLookAheadMatcher< M, F >::Properties ( uint64  props  )  const [inline, virtual]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
void fst::ArcLookAheadMatcher< M, F >::SetState ( StateId  s  )  [inline]

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
MatchType fst::ArcLookAheadMatcher< M, F >::Type ( bool  test  )  const [inline, virtual]

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

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

template<class M, uint32 F = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
const Arc& fst::ArcLookAheadMatcher< M, F >::Value (  )  const [inline]

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

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