FST
openfst-1.8.3
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 | Impl = internal::AddOnImpl< FST, Data > |
using | D = Data |
Public Types inherited from fst::ImplToExpandedFst< 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 | Arc = typename internal::AddOnImpl< F, Data >::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 (const std::string &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< internal::AddOnImpl< F, Data > > 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< internal::AddOnImpl< F, Data > > 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 internal::AddOnImpl< F, Data > * | GetImpl () const |
internal::AddOnImpl< F, Data > * | GetMutableImpl () const |
std::shared_ptr< internal::AddOnImpl< F, Data > > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< internal::AddOnImpl< F, Data > > 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 internal::AddOnImpl< F, Data > * | Read (std::istream &strm, const FstReadOptions &opts) |
static internal::AddOnImpl< F, Data > * | 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 97 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::D = Data |
Definition at line 104 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::FST = F |
Definition at line 96 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::FstMatcher = M |
Definition at line 100 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::Impl = internal::AddOnImpl<FST, Data> |
Definition at line 103 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::MatcherData = typename FstMatcher::MatcherData |
Definition at line 101 of file matcher-fst.h.
using fst::MatcherFst< F, M, Name, Init, Data >::StateId = typename Arc::StateId |
Definition at line 98 of file matcher-fst.h.
|
inline |
Definition at line 109 of file matcher-fst.h.
|
inlineexplicit |
Definition at line 114 of file matcher-fst.h.
|
inlineexplicit |
Definition at line 122 of file matcher-fst.h.
|
inline |
Definition at line 127 of file matcher-fst.h.
|
inlineexplicitprotected |
Definition at line 227 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::ExpandedFst< typename internal::AddOnImpl< F, Data >::Arc >.
Definition at line 131 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 191 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 201 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 208 of file matcher-fst.h.
|
inlinestaticprotected |
Definition at line 218 of file matcher-fst.h.
|
inline |
Definition at line 170 of file matcher-fst.h.
|
inline |
Definition at line 176 of file matcher-fst.h.
|
inline |
Definition at line 168 of file matcher-fst.h.
|
inline |
Definition at line 172 of file matcher-fst.h.
|
inline |
Definition at line 181 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 160 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 164 of file matcher-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 156 of file matcher-fst.h.
|
inlinestatic |
Definition at line 136 of file matcher-fst.h.
|
inlinestatic |
Definition at line 143 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 148 of file matcher-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 152 of file matcher-fst.h.
|
friend |
Definition at line 107 of file matcher-fst.h.
|
friend |
Definition at line 106 of file matcher-fst.h.