FST  openfst-1.8.3
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_t Properties () const override
 
uint64_t Properties (uint64_t mask) const override
 
void Expand (StateId state)
 
const Fst< A > * GetFst () const
 
- Public Member Functions inherited from fst::internal::CacheImpl< B >
 CacheImpl ()=default
 
 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=Weight::One())
 
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 ()=default
 
 FstImpl (const FstImpl< CacheState< B >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< B >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()=default
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (std::string_view type)
 
void SetProperties (uint64_t props)
 
void SetProperties (uint64_t props, uint64_t mask)
 
void SetProperties (uint64_t props, uint64_t mask) const
 
void UpdateProperties (uint64_t props, uint64_t mask)
 
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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< B >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< B >::Arc >
std::atomic< uint64_t > properties_
 

Detailed Description

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

Definition at line 212 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 214 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 215 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 216 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 233 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 242 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 250 of file state-map.h.

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

Definition at line 258 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 311 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 267 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 319 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 296 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 287 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 272 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 277 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 282 of file state-map.h.

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

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

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

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

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

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

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

Definition at line 262 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 231 of file state-map.h.


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