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

#include <cache.h>

Public Types

using State = S
 
using Arc = typename State::Arc
 
using StateId = typename Arc::StateId
 
using StateMap = std::unordered_map< StateId, State *, std::hash< StateId >, std::equal_to< StateId >, PoolAllocator< std::pair< const StateId, State * >>>
 

Public Member Functions

 HashCacheStore (const CacheOptions &opts)
 
 HashCacheStore (const HashCacheStore< S > &store)
 
 ~HashCacheStore ()
 
HashCacheStoreoperator= (const HashCacheStore &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::HashCacheStore< S >

Definition at line 434 of file cache.h.

Member Typedef Documentation

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

Definition at line 437 of file cache.h.

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

Definition at line 436 of file cache.h.

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

Definition at line 438 of file cache.h.

template<class S>
using fst::HashCacheStore< S >::StateMap = std::unordered_map<StateId, State *, std::hash<StateId>, std::equal_to<StateId>, PoolAllocator<std::pair<const StateId, State *>>>

Definition at line 443 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 446 of file cache.h.

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

Definition at line 451 of file cache.h.

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

Definition at line 456 of file cache.h.

Member Function Documentation

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

Definition at line 480 of file cache.h.

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

Definition at line 493 of file cache.h.

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

Definition at line 500 of file cache.h.

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

Definition at line 512 of file cache.h.

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

Definition at line 487 of file cache.h.

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

Definition at line 490 of file cache.h.

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

Definition at line 503 of file cache.h.

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

Definition at line 473 of file cache.h.

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

Definition at line 467 of file cache.h.

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

Definition at line 507 of file cache.h.

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

Definition at line 458 of file cache.h.

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

Definition at line 509 of file cache.h.

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

Definition at line 484 of file cache.h.

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

Definition at line 505 of file cache.h.


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