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

#include <state-map.h>

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

Public Types

using Arc = B
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::internal::CacheImpl< B >
using State = CacheState< B >
 
- Public Types inherited from fst::internal::CacheBaseImpl< CacheState< B > >
using Arc = typename CacheState< B >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< typename CacheState< B >::Arc >
 
- Public Types inherited from fst::internal::FstImpl< CacheState< B >::Arc >
using StateId = typename CacheState< B >::Arc::StateId
 
using Weight = typename CacheState< B >::Arc::Weight
 

Public Member Functions

 StateMapFstImpl (const Fst< A > &fst, const C &mapper, const StateMapFstOptions &opts)
 
 StateMapFstImpl (const Fst< A > &fst, C *mapper, const StateMapFstOptions &opts)
 
 StateMapFstImpl (const StateMapFstImpl< A, B, C > &impl)
 
 ~StateMapFstImpl () override
 
StateId Start ()
 
Weight Final (StateId state)
 
size_t NumArcs (StateId state)
 
size_t NumInputEpsilons (StateId state)
 
size_t NumOutputEpsilons (StateId state)
 
void InitStateIterator (StateIteratorData< B > *datb) const
 
void InitArcIterator (StateId state, ArcIteratorData< B > *data)
 
uint64 Properties () const override
 
uint64 Properties (uint64 mask) const override
 
void Expand (StateId state)
 
const Fst< A > * GetFst () const
 
- Public Member Functions inherited from fst::internal::CacheImpl< B >
 CacheImpl ()
 
 CacheImpl (const CacheOptions &opts)
 
 CacheImpl (const CacheImpl< B > &impl, bool preserve_cache=false)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< B > >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< B >::Arc > > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheState< B >, DefaultCacheStore< typename CacheState< B >::Arc > > &impl, bool preserve_cache=false)
 
 ~CacheBaseImpl () override
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight)
 
void PushArc (StateId s, const Arc &arc)
 
void PushArc (StateId s, Arc &&arc)
 
void EmplaceArc (StateId s, T &&...ctor_args)
 
void SetArcs (StateId s)
 
void ReserveArcs (StateId s, size_t n)
 
void DeleteArcs (StateId s)
 
void DeleteArcs (StateId s, size_t n)
 
void Clear ()
 
bool HasStart () const
 
bool HasFinal (StateId s) const
 
bool HasArcs (StateId s) const
 
StateId Start () const
 
Weight Final (StateId s) const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
StateId NumKnownStates () const
 
void UpdateNumKnownStates (StateId s)
 
StateId MinUnexpandedState () const
 
StateId MaxExpandedState () const
 
void SetExpandedState (StateId s)
 
bool ExpandedState (StateId s) const
 
const DefaultCacheStore< typename CacheState< B >::Arc > * GetCacheStore () const
 
DefaultCacheStore< typename CacheState< B >::Arc > * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheState< B >::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< CacheState< B >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< B >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< CacheState< B >::Arc > &impl)
 
FstImploperator= (FstImpl< CacheState< B >::Arc > &&impl) noexcept
 
const string & Type () const
 
void SetType (const string &type)
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Friends

class StateIterator< StateMapFst< A, B, C > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< B >::Arc >
static void WriteFstHeader (const Fst< CacheState< B >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< B >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< B >::Arc >
uint64 properties_
 

Detailed Description

template<class A, class B, class C>
class fst::internal::StateMapFstImpl< A, B, C >

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

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

template<class A, class B, class C>
fst::internal::StateMapFstImpl< A, B, C >::StateMapFstImpl ( const StateMapFstImpl< A, B, C > &  impl)
inline

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

template<class A, class B, class C>
fst::internal::StateMapFstImpl< A, B, C >::~StateMapFstImpl ( )
inlineoverride

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

Member Function Documentation

template<class A, class B, class C>
void fst::internal::StateMapFstImpl< A, B, C >::Expand ( StateId  state)
inline

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

template<class A, class B, class C>
Weight fst::internal::StateMapFstImpl< A, B, C >::Final ( StateId  state)
inline

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

template<class A, class B, class C>
const Fst<A>* fst::internal::StateMapFstImpl< A, B, C >::GetFst ( ) const
inline

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

template<class A, class B, class C>
void fst::internal::StateMapFstImpl< A, B, C >::InitArcIterator ( StateId  state,
ArcIteratorData< B > *  data 
)
inline

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

template<class A, class B, class C>
void fst::internal::StateMapFstImpl< A, B, C >::InitStateIterator ( StateIteratorData< B > *  datb) const
inline

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

template<class A, class B, class C>
size_t fst::internal::StateMapFstImpl< A, B, C >::NumArcs ( StateId  state)
inline

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

template<class A, class B, class C>
size_t fst::internal::StateMapFstImpl< A, B, C >::NumInputEpsilons ( StateId  state)
inline

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

template<class A, class B, class C>
size_t fst::internal::StateMapFstImpl< A, B, C >::NumOutputEpsilons ( StateId  state)
inline

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

template<class A, class B, class C>
uint64 fst::internal::StateMapFstImpl< A, B, C >::Properties ( ) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< B >::Arc >.

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

template<class A, class B, class C>
uint64 fst::internal::StateMapFstImpl< A, B, C >::Properties ( uint64  mask) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< B >::Arc >.

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

template<class A, class B, class C>
StateId fst::internal::StateMapFstImpl< A, B, C >::Start ( )
inline

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

Friends And Related Function Documentation

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

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


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