FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::VectorCacheStore< S > Class Template Reference

#include <cache.h>

Public Types

using State = S
 
using Arc = typename State::Arc
 
using StateId = typename Arc::StateId
 
using StateList = std::list< StateId, PoolAllocator< StateId >>
 

Public Member Functions

 VectorCacheStore (const CacheOptions &opts)
 
 VectorCacheStore (const VectorCacheStore< S > &store)
 
 ~VectorCacheStore ()
 
VectorCacheStoreoperator= (const VectorCacheStore &store)
 
bool InBounds (StateId s) const
 
const StateGetState (StateId s) const
 
StateGetMutableState (StateId s)
 
void AddArc (State *state, const Arc &arc)
 
void SetArcs (State *state)
 
void DeleteArcs (State *state)
 
void DeleteArcs (State *state, size_t n)
 
void Clear ()
 
StateId CountStates () const
 
bool Done () const
 
StateId Value () const
 
void Next ()
 
void Reset ()
 
void Delete ()
 

Detailed Description

template<class S>
class fst::VectorCacheStore< S >

Definition at line 311 of file cache.h.

Member Typedef Documentation

template<class S>
using fst::VectorCacheStore< S >::Arc = typename State::Arc

Definition at line 314 of file cache.h.

template<class S>
using fst::VectorCacheStore< S >::State = S

Definition at line 313 of file cache.h.

template<class S>
using fst::VectorCacheStore< S >::StateId = typename Arc::StateId

Definition at line 315 of file cache.h.

template<class S>
using fst::VectorCacheStore< S >::StateList = std::list<StateId, PoolAllocator<StateId>>

Definition at line 316 of file cache.h.

Constructor & Destructor Documentation

template<class S>
fst::VectorCacheStore< S >::VectorCacheStore ( const CacheOptions opts)
inlineexplicit

Definition at line 319 of file cache.h.

template<class S>
fst::VectorCacheStore< S >::VectorCacheStore ( const VectorCacheStore< S > &  store)
inline

Definition at line 324 of file cache.h.

template<class S>
fst::VectorCacheStore< S >::~VectorCacheStore ( )
inline

Definition at line 330 of file cache.h.

Member Function Documentation

template<class S>
void fst::VectorCacheStore< S >::AddArc ( State state,
const Arc arc 
)
inline

Definition at line 366 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::Clear ( )
inline

Definition at line 379 of file cache.h.

template<class S>
StateId fst::VectorCacheStore< S >::CountStates ( ) const
inline

Definition at line 387 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::Delete ( )
inline

Definition at line 403 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::DeleteArcs ( State state)
inline

Definition at line 373 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::DeleteArcs ( State state,
size_t  n 
)
inline

Definition at line 376 of file cache.h.

template<class S>
bool fst::VectorCacheStore< S >::Done ( ) const
inline

Definition at line 394 of file cache.h.

template<class S>
State* fst::VectorCacheStore< S >::GetMutableState ( StateId  s)
inline

Definition at line 350 of file cache.h.

template<class S>
const State* fst::VectorCacheStore< S >::GetState ( StateId  s) const
inline

Definition at line 345 of file cache.h.

template<class S>
bool fst::VectorCacheStore< S >::InBounds ( StateId  s) const
inline

Definition at line 340 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::Next ( )
inline

Definition at line 398 of file cache.h.

template<class S>
VectorCacheStore& fst::VectorCacheStore< S >::operator= ( const VectorCacheStore< S > &  store)
inline

Definition at line 332 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::Reset ( )
inline

Definition at line 400 of file cache.h.

template<class S>
void fst::VectorCacheStore< S >::SetArcs ( State state)
inline

Definition at line 370 of file cache.h.

template<class S>
StateId fst::VectorCacheStore< S >::Value ( ) const
inline

Definition at line 396 of file cache.h.


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