FST
openfst-1.8.3
OpenFst Library
|
#include <lookahead-matcher.h>
Public Types | |
using | Matcher = M |
using | Accumulator = Accum |
using | Reachable = R |
using | FST = typename M::FST |
using | Arc = typename FST::Arc |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | MatcherData = typename Reachable::Data |
Public Types inherited from fst::LookAheadMatcherBase< M::FST::Arc > | |
using | Label = typename M::FST::Arc::Label |
using | StateId = typename M::FST::Arc::StateId |
using | Weight = typename M::FST::Arc::Weight |
Public Types inherited from fst::MatcherBase< M::FST::Arc > | |
using | Arc = M::FST::Arc |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
LabelLookAheadMatcher (const FST &fst, MatchType match_type, std::shared_ptr< MatcherData > data=nullptr, std::unique_ptr< Accumulator > accumulator=nullptr) | |
LabelLookAheadMatcher (const FST *fst, MatchType match_type, std::shared_ptr< MatcherData > data=nullptr, std::unique_ptr< Accumulator > accumulator=nullptr) | |
LabelLookAheadMatcher (const LabelLookAheadMatcher &lmatcher, bool safe=false) | |
LabelLookAheadMatcher * | Copy (bool safe=false) const override |
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_t | Properties (uint64_t inprops) const override |
uint32_t | Flags () const override |
const MatcherData * | GetData () const |
std::shared_ptr< MatcherData > | GetSharedData () const |
template<class LFST > | |
bool | LookAheadFst (const LFST &fst, StateId s) |
bool | LookAheadFst (const Fst< Arc > &fst, StateId s) final |
void | InitLookAheadFst (const Fst< Arc > &fst, bool copy=false) override |
template<class LFST > | |
void | InitLookAheadFst (const LFST &fst, bool copy=false) |
bool | LookAheadLabel (Label label) const final |
Public Member Functions inherited from fst::LookAheadMatcherBase< M::FST::Arc > | |
virtual void | InitLookAheadFst (const Fst< M::FST::Arc > &, bool copy=false)=0 |
virtual bool | LookAheadFst (const Fst< M::FST::Arc > &, StateId)=0 |
bool | LookAheadPrefix (M::FST::Arc *arc) const |
Weight | LookAheadWeight () const |
Public Member Functions inherited from fst::MatcherBase< M::FST::Arc > | |
virtual | ~MatcherBase ()=default |
Static Public Attributes | |
static constexpr uint32_t | kFlags = flags |
Additional Inherited Members | |
Protected Member Functions inherited from fst::LookAheadMatcherBase< M::FST::Arc > | |
void | ClearLookAheadWeight () |
void | SetLookAheadWeight (Weight weight) |
void | ClearLookAheadPrefix () |
void | SetLookAheadPrefix (M::FST::Arcarc) |
Definition at line 439 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Accumulator = Accum |
Definition at line 443 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Arc = typename FST::Arc |
Definition at line 447 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::FST = typename M::FST |
Definition at line 446 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Label = typename Arc::Label |
Definition at line 448 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Matcher = M |
Definition at line 442 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::MatcherData = typename Reachable::Data |
Definition at line 451 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Reachable = R |
Definition at line 444 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::StateId = typename Arc::StateId |
Definition at line 449 of file lookahead-matcher.h.
using fst::LabelLookAheadMatcher< M, flags, Accum, R >::Weight = typename Arc::Weight |
Definition at line 450 of file lookahead-matcher.h.
|
inline |
Definition at line 467 of file lookahead-matcher.h.
|
inline |
Definition at line 478 of file lookahead-matcher.h.
|
inline |
Definition at line 489 of file lookahead-matcher.h.
|
inlineoverridevirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 499 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 520 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Reimplemented from fst::MatcherBase< M::FST::Arc >.
Definition at line 526 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 512 of file lookahead-matcher.h.
|
inlineoverridevirtual |
Reimplemented from fst::MatcherBase< M::FST::Arc >.
Definition at line 540 of file lookahead-matcher.h.
|
inline |
Definition at line 550 of file lookahead-matcher.h.
|
inlineoverridevirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 530 of file lookahead-matcher.h.
|
inline |
Definition at line 554 of file lookahead-matcher.h.
|
inlineoverride |
Definition at line 567 of file lookahead-matcher.h.
|
inline |
Definition at line 576 of file lookahead-matcher.h.
|
inline |
Definition at line 627 of file lookahead-matcher.h.
|
inlinefinal |
Definition at line 563 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::LookAheadMatcherBase< M::FST::Arc >.
Definition at line 584 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 524 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Reimplemented from fst::MatcherBase< M::FST::Arc >.
Definition at line 528 of file lookahead-matcher.h.
|
inlineoverridevirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 532 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 505 of file lookahead-matcher.h.
|
inlineoverridevirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 503 of file lookahead-matcher.h.
|
inlinefinalvirtual |
Implements fst::MatcherBase< M::FST::Arc >.
Definition at line 522 of file lookahead-matcher.h.
|
static |
Definition at line 464 of file lookahead-matcher.h.