FST  openfst-1.8.2.post1
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 304 of file cache.h.

Member Typedef Documentation

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

Definition at line 307 of file cache.h.

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

Definition at line 306 of file cache.h.

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

Definition at line 308 of file cache.h.

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

Definition at line 309 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 312 of file cache.h.

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

Definition at line 317 of file cache.h.

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

Definition at line 323 of file cache.h.

Member Function Documentation

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

Definition at line 359 of file cache.h.

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

Definition at line 372 of file cache.h.

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

Definition at line 380 of file cache.h.

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

Definition at line 396 of file cache.h.

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

Definition at line 366 of file cache.h.

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

Definition at line 369 of file cache.h.

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

Definition at line 387 of file cache.h.

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

Definition at line 343 of file cache.h.

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

Definition at line 338 of file cache.h.

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

Definition at line 333 of file cache.h.

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

Definition at line 391 of file cache.h.

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

Definition at line 325 of file cache.h.

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

Definition at line 393 of file cache.h.

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

Definition at line 363 of file cache.h.

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

Definition at line 389 of file cache.h.


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