FST  openfst-1.7.1
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 ()
 
VectorCacheStore< State > & operator= (const VectorCacheStore< State > &store)
 
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 284 of file cache.h.

Member Typedef Documentation

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

Definition at line 287 of file cache.h.

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

Definition at line 286 of file cache.h.

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

Definition at line 288 of file cache.h.

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

Definition at line 289 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 292 of file cache.h.

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

Definition at line 297 of file cache.h.

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

Definition at line 303 of file cache.h.

Member Function Documentation

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

Definition at line 335 of file cache.h.

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

Definition at line 348 of file cache.h.

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

Definition at line 356 of file cache.h.

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

Definition at line 372 of file cache.h.

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

Definition at line 342 of file cache.h.

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

Definition at line 345 of file cache.h.

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

Definition at line 363 of file cache.h.

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

Definition at line 319 of file cache.h.

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

Definition at line 314 of file cache.h.

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

Definition at line 367 of file cache.h.

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

Definition at line 305 of file cache.h.

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

Definition at line 369 of file cache.h.

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

Definition at line 339 of file cache.h.

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

Definition at line 365 of file cache.h.


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