FST
openfst-1.8.4
OpenFst Library
|
#include <state-map.h>
Public Types | |
using | Arc = B |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | Store = DefaultCacheStore< Arc > |
using | State = typename Store::State |
using | Impl = I |
![]() | |
using | Impl = internal::StateMapFstImpl< A, B, C > |
using | Arc = typename Impl::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
using | Arc = typename internal::StateMapFstImpl< A, B, C >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
StateMapFst (const Fst< A > &fst, const C &mapper, const StateMapFstOptions &opts) | |
StateMapFst (const Fst< A > &fst, C *mapper, const StateMapFstOptions &opts) | |
StateMapFst (const Fst< A > &fst, const C &mapper) | |
StateMapFst (const Fst< A > &fst, C *mapper) | |
StateMapFst (const StateMapFst &fst, bool safe=false) | |
StateMapFst * | Copy (bool safe=false) const override |
void | InitStateIterator (StateIteratorData< B > *data) const override |
void | InitArcIterator (StateId state, ArcIteratorData< B > *data) const override |
![]() | |
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 |
![]() | |
virtual | ~Fst ()=default |
virtual std::optional< StateId > | NumStatesIfKnown () const |
virtual bool | Write (std::ostream &strm, const FstWriteOptions &opts) const |
virtual bool | Write (const std::string &source) const |
virtual void | InitStateIterator (StateIteratorData< Arc > *data) const =0 |
virtual void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0 |
virtual MatcherBase< Arc > * | InitMatcher (MatchType match_type) const |
Friends | |
class | ArcIterator< StateMapFst< A, B, C > > |
Additional Inherited Members | |
![]() | |
static Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (std::string_view source) |
![]() | |
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) |
![]() | |
bool | WriteFile (const std::string &source) const |
Definition at line 182 of file state-map.h.
using fst::StateMapFst< A, B, C >::Arc = B |
Definition at line 354 of file state-map.h.
using fst::ImplToFst< I, FST >::Impl = I |
Definition at line 43 of file impl-to-fst.h.
using fst::StateMapFst< A, B, C >::State = typename Store::State |
Definition at line 358 of file state-map.h.
using fst::StateMapFst< A, B, C >::StateId = typename Arc::StateId |
Definition at line 355 of file state-map.h.
using fst::StateMapFst< A, B, C >::Store = DefaultCacheStore<Arc> |
Definition at line 357 of file state-map.h.
using fst::StateMapFst< A, B, C >::Weight = typename Arc::Weight |
Definition at line 356 of file state-map.h.
|
inline |
Definition at line 361 of file state-map.h.
|
inline |
Definition at line 365 of file state-map.h.
|
inline |
Definition at line 368 of file state-map.h.
|
inline |
Definition at line 371 of file state-map.h.
|
inline |
Definition at line 375 of file state-map.h.
|
inlineoverridevirtual |
Implements fst::Fst< typename internal::StateMapFstImpl< A, B, C >::Arc >.
Definition at line 378 of file state-map.h.
|
inlineoverride |
Definition at line 386 of file state-map.h.
|
inlineoverride |
Definition at line 382 of file state-map.h.
|
friend |
Definition at line 352 of file state-map.h.