Public Member Functions

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

#include <fst/lookahead-matcher.h>

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

Collaboration diagram for fst::ArcLookAheadMatcher< M, flags >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ArcLookAheadMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=std::shared_ptr< MatcherData >())
 ArcLookAheadMatcher (const ArcLookAheadMatcher< M, flags > &lmatcher, bool safe=false)
ArcLookAheadMatcher< M, flags > * Copy (bool safe=false) const override
 General matcher methods.
MatchType Type (bool test) const override
void SetState (StateId s) final
bool Find (Label label) final
bool Done () const final
const Arc & Value () const final
void Next () final
Weight Final (StateId s) const final
ssize_t Priority (StateId s) final
const FST & GetFst () const override
uint64 Properties (uint64 props) const override
uint32 Flags () const override
const MatcherData * GetData () const
std::shared_ptr< MatcherData > GetSharedData () const
void InitLookAheadFst (const Fst< Arc > &fst, bool copy=false) override
 Look-ahead methods.
bool LookAheadFst (const Fst< Arc > &, StateId) final
bool LookAheadLabel (Label label) const final

Detailed Description

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

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

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


Constructor & Destructor Documentation

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

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

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

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


Member Function Documentation

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

General matcher methods.

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

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

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

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
Weight fst::ArcLookAheadMatcher< M, flags >::Final ( StateId  s  )  const [inline, virtual]

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

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

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

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

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

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

Trivial implementations that can be used by derived classes. Full devirtualization is expected for any derived class marked final.

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

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

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

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

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

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
std::shared_ptr<MatcherData> fst::ArcLookAheadMatcher< M, flags >::GetSharedData (  )  const [inline]

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

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

Look-ahead methods.

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

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

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

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

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

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

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

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

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

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

template<class M, uint32 flags = kLookAheadNonEpsilons | kLookAheadEpsilons | kLookAheadWeight | kLookAheadPrefix>
ssize_t fst::ArcLookAheadMatcher< M, flags >::Priority ( StateId  s  )  [inline, virtual]

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

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

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

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

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

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

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

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

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

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

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

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

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

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