FST  openfst-1.7.2
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< A, B, C > &fst, bool safe=false)
 
StateMapFst< A, B, C > * Copy (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 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 string &filename) 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 Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 
- 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< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > &&fst) noexcept
 
ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > & operator= (const ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > &fst)
 
ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > & operator= (ImplToFst< internal::StateMapFstImpl< A, B, C >, Fst< typename internal::StateMapFstImpl< A, B, C >::Arc > > &&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 string &filename) const
 

Detailed Description

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

Definition at line 156 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 325 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 330 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 329 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 326 of file state-map.h.

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

Definition at line 328 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 327 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 332 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 336 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 339 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 343 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 348 of file state-map.h.

Member Function Documentation

template<class A, class B, class C>
StateMapFst<A, B, C>* 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 360 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 356 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 323 of file state-map.h.


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