FST  openfst-1.7.0
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 ()
 
HashCacheStore< State > & operator= (const HashCacheStore< 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::HashCacheStore< S >

Definition at line 405 of file cache.h.

Member Typedef Documentation

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

Definition at line 408 of file cache.h.

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

Definition at line 407 of file cache.h.

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

Definition at line 409 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 414 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 417 of file cache.h.

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

Definition at line 422 of file cache.h.

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

Definition at line 427 of file cache.h.

Member Function Documentation

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

Definition at line 451 of file cache.h.

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

Definition at line 464 of file cache.h.

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

Definition at line 471 of file cache.h.

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

Definition at line 483 of file cache.h.

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

Definition at line 458 of file cache.h.

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

Definition at line 461 of file cache.h.

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

Definition at line 474 of file cache.h.

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

Definition at line 444 of file cache.h.

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

Definition at line 438 of file cache.h.

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

Definition at line 478 of file cache.h.

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

Definition at line 429 of file cache.h.

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

Definition at line 480 of file cache.h.

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

Definition at line 455 of file cache.h.

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

Definition at line 476 of file cache.h.


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