FST
openfst-1.8.4
OpenFst Library
|
#include <matcher-fst.h>
Public Types | |
using | FST = F |
using | Arc = typename FST::Arc |
using | StateId = typename Arc::StateId |
using | FstMatcher = M |
using | MatcherData = typename FstMatcher::MatcherData |
using | D = Data |
using | Impl = I |
Public Types inherited from fst::ImplToExpandedFst< internal::AddOnImpl< F, Data > > | |
using | Impl = internal::AddOnImpl< F, Data > |
using | Arc = typename ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Types inherited from fst::ImplToFst< internal::AddOnImpl< F, Data >, ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > > | |
using | Impl = internal::AddOnImpl< F, Data > |
using | Arc = typename Impl::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Types inherited from fst::ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > | |
using | Arc = typename internal::AddOnImpl< F, Data >::Arc |
using | StateId = typename Arc::StateId |
Public Types inherited from fst::Fst< A > | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
MatcherFst () | |
MatcherFst (const FST &fst, std::shared_ptr< Data > data=nullptr) | |
MatcherFst (const Fst< Arc > &fst, std::shared_ptr< Data > data=nullptr) | |
MatcherFst (const MatcherFst &fst, bool safe=false) | |
MatcherFst * | Copy (bool safe=false) const override |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const override |
bool | Write (const std::string &source) const override |
void | InitStateIterator (StateIteratorData< Arc > *data) const override |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override |
FstMatcher * | InitMatcher (MatchType match_type) const override |
const FST & | GetFst () const |
const Data * | GetAddOn () const |
std::shared_ptr< Data > | GetSharedAddOn () const |
const MatcherData * | GetData (MatchType match_type) const |
std::shared_ptr< MatcherData > | GetSharedData (MatchType match_type) const |
Public Member Functions inherited from fst::ImplToExpandedFst< internal::AddOnImpl< F, Data > > | |
StateId | NumStates () const override |
Public Member Functions inherited from fst::ImplToFst< internal::AddOnImpl< F, Data >, ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > > | |
StateId | Start () const override |
Weight | Final (StateId s) const override |
size_t | NumArcs (StateId s) const override |
size_t | NumInputEpsilons (StateId s) const override |
size_t | NumOutputEpsilons (StateId s) const override |
uint64_t | Properties (uint64_t mask, bool test) const override |
const std::string & | Type () const override |
const SymbolTable * | InputSymbols () const override |
const SymbolTable * | OutputSymbols () const override |
Public Member Functions inherited from fst::ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > | |
std::optional< StateId > | NumStatesIfKnown () const override |
Public Member Functions inherited from fst::Fst< A > | |
virtual | ~Fst ()=default |
Static Public Member Functions | |
static MatcherFst * | Read (std::istream &strm, const FstReadOptions &opts) |
static MatcherFst * | Read (std::string_view source) |
Static Public Member Functions inherited from fst::ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > | |
static ExpandedFst * | Read (std::istream &strm, const FstReadOptions &opts) |
static ExpandedFst * | Read (std::string_view source) |
Static Public Member Functions inherited from fst::Fst< A > | |
static Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (std::string_view source) |
Protected Member Functions | |
MatcherFst (std::shared_ptr< Impl > impl) | |
Protected Member Functions inherited from fst::ImplToExpandedFst< internal::AddOnImpl< F, Data > > | |
ImplToExpandedFst (std::shared_ptr< Impl > impl) | |
ImplToExpandedFst (const ImplToExpandedFst &fst, bool safe) | |
Protected Member Functions inherited from fst::ImplToFst< internal::AddOnImpl< F, Data >, ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc > > | |
ImplToFst (std::shared_ptr< Impl > impl) | |
ImplToFst (const ImplToFst &fst, bool safe) | |
ImplToFst ()=delete | |
ImplToFst (const ImplToFst &fst) | |
ImplToFst (ImplToFst &&fst) noexcept | |
ImplToFst & | operator= (const ImplToFst &fst) |
ImplToFst & | operator= (ImplToFst &&fst) noexcept |
const Impl * | GetImpl () const |
Impl * | GetMutableImpl () const |
std::shared_ptr< Impl > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< Impl > impl) |
Protected Member Functions inherited from fst::Fst< A > | |
bool | WriteFile (const std::string &source) const |
Static Protected Member Functions | |
static std::shared_ptr< Impl > | CreateDataAndImpl (const FST &fst, std::string_view name) |
static std::shared_ptr< Impl > | CreateDataAndImpl (const Fst< Arc > &fst, std::string_view name) |
static std::shared_ptr< Impl > | CreateImpl (const FST &fst, std::string_view name, std::shared_ptr< Data > data) |
static std::shared_ptr< Impl > | CreateImpl (const Fst< Arc > &fst, std::string_view name, std::shared_ptr< Data > data) |
Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::AddOnImpl< F, Data > > | |
static Impl * | Read (std::istream &strm, const FstReadOptions &opts) |
static Impl * | Read (std::string_view source) |
Friends | |
class | StateIterator< MatcherFst< FST, FstMatcher, Name, Init, Data > > |
class | ArcIterator< MatcherFst< FST, FstMatcher, Name, Init, Data > > |
Definition at line 94 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::Arc = typename FST::Arc |
Definition at line 99 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::D = Data |
Definition at line 106 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::FST = F |
Definition at line 98 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::FstMatcher = M |
Definition at line 102 of file matcher-fst.h.
using fst::ImplToExpandedFst< I, FST >::Impl = I |
Definition at line 142 of file expanded-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::MatcherData = typename FstMatcher::MatcherData |
Definition at line 103 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::StateId = typename Arc::StateId |
Definition at line 100 of file matcher-fst.h.
|
inline |
Definition at line 111 of file matcher-fst.h.
|
inlineexplicit |
Definition at line 116 of file matcher-fst.h.
|
inlineexplicit |
Definition at line 124 of file matcher-fst.h.
|
inline |
Definition at line 129 of file matcher-fst.h.
|
inlineexplicitprotected |
Definition at line 228 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc >.
Definition at line 132 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 192 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 202 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 209 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 219 of file matcher-fst.h.
|
inline |
Definition at line 171 of file matcher-fst.h.
|
inline |
Definition at line 177 of file matcher-fst.h.
|
inline |
Definition at line 169 of file matcher-fst.h.
|
inline |
Definition at line 173 of file matcher-fst.h.
|
inline |
Definition at line 182 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 161 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 165 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 157 of file matcher-fst.h.
|
inlinestatic |
Definition at line 137 of file matcher-fst.h.
|
inlinestatic |
Definition at line 144 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 149 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 153 of file matcher-fst.h.
|
friend |
Definition at line 109 of file matcher-fst.h.
|
friend |
Definition at line 108 of file matcher-fst.h.