FST  openfst-1.7.5
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::StateMapFst< A, B, C > Class Template Reference

#include <state-map.h>

Inheritance diagram for fst::StateMapFst< A, B, C >:
Inheritance graph
[legend]
Collaboration diagram for fst::StateMapFst< A, B, C >:
Collaboration graph
[legend]

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 = internal::StateMapFstImpl< A, B, C >
 
- Public Types inherited from fst::ImplToFst< internal::StateMapFstImpl< A, B, C > >
using Arc = typename internal::StateMapFstImpl< A, B, C >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::StateMapFstImpl< A, B, C >::Arc >
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)
 
StateMapFstCopy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< B > *data) const override
 
void InitArcIterator (StateId state, ArcIteratorData< B > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::StateMapFstImpl< A, B, C > >
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 Properties (uint64 mask, bool test) const override
 
const std::string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< typename internal::StateMapFstImpl< A, B, C >::Arc >
virtual ~Fst ()
 
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 Public Member Functions inherited from fst::Fst< typename internal::StateMapFstImpl< A, B, C >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::StateMapFstImpl< A, B, C > >
 ImplToFst (std::shared_ptr< internal::StateMapFstImpl< A, B, C > > impl)
 
 ImplToFst (const ImplToFst &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
const internal::StateMapFstImpl< A, B, C > * GetImpl () const
 
internal::StateMapFstImpl< A, B, C > * GetMutableImpl () const
 
std::shared_ptr< internal::StateMapFstImpl< A, B, C > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::StateMapFstImpl< A, B, C > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::StateMapFstImpl< A, B, C >::Arc >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class A, class B, class C>
class fst::StateMapFst< A, B, C >

Definition at line 157 of file state-map.h.

Member Typedef Documentation

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::Arc = B

Definition at line 326 of file state-map.h.

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::Impl = internal::StateMapFstImpl<A, B, C>

Definition at line 331 of file state-map.h.

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::State = typename Store::State

Definition at line 330 of file state-map.h.

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::StateId = typename Arc::StateId

Definition at line 327 of file state-map.h.

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::Store = DefaultCacheStore<Arc>

Definition at line 329 of file state-map.h.

template<class A, class B, class C>
using fst::StateMapFst< A, B, C >::Weight = typename Arc::Weight

Definition at line 328 of file state-map.h.

Constructor & Destructor Documentation

template<class A, class B, class C>
fst::StateMapFst< A, B, C >::StateMapFst ( const Fst< A > &  fst,
const C &  mapper,
const StateMapFstOptions opts 
)
inline

Definition at line 333 of file state-map.h.

template<class A, class B, class C>
fst::StateMapFst< A, B, C >::StateMapFst ( const Fst< A > &  fst,
C *  mapper,
const StateMapFstOptions opts 
)
inline

Definition at line 337 of file state-map.h.

template<class A, class B, class C>
fst::StateMapFst< A, B, C >::StateMapFst ( const Fst< A > &  fst,
const C &  mapper 
)
inline

Definition at line 340 of file state-map.h.

template<class A, class B, class C>
fst::StateMapFst< A, B, C >::StateMapFst ( const Fst< A > &  fst,
C *  mapper 
)
inline

Definition at line 344 of file state-map.h.

template<class A, class B, class C>
fst::StateMapFst< A, B, C >::StateMapFst ( const StateMapFst< A, B, C > &  fst,
bool  safe = false 
)
inline

Definition at line 349 of file state-map.h.

Member Function Documentation

template<class A, class B, class C>
StateMapFst* fst::StateMapFst< A, B, C >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class B, class C>
void fst::StateMapFst< A, B, C >::InitArcIterator ( StateId  state,
ArcIteratorData< B > *  data 
) const
inlineoverride

Definition at line 361 of file state-map.h.

template<class A, class B, class C>
void fst::StateMapFst< A, B, C >::InitStateIterator ( StateIteratorData< B > *  data) const
inlineoverride

Definition at line 357 of file state-map.h.

Friends And Related Function Documentation

template<class A, class B, class C>
friend class ArcIterator< StateMapFst< A, B, C > >
friend

Definition at line 324 of file state-map.h.


The documentation for this class was generated from the following file: