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

#include <cache.h>

Inheritance diagram for fst::GCCacheStore< CacheStore >:
Inheritance graph
[legend]

Public Types

using State = typename CacheStore::State
 
using Arc = typename State::Arc
 
using StateId = typename Arc::StateId
 

Public Member Functions

 GCCacheStore (const CacheOptions &opts)
 
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 ()
 
void GC (const State *current, bool free_recent, float cache_fraction=0.666)
 
size_t CacheSize () const
 
size_t CacheLimit () const
 

Detailed Description

template<class CacheStore>
class fst::GCCacheStore< CacheStore >

Definition at line 671 of file cache.h.

Member Typedef Documentation

template<class CacheStore>
using fst::GCCacheStore< CacheStore >::Arc = typename State::Arc

Definition at line 674 of file cache.h.

template<class CacheStore>
using fst::GCCacheStore< CacheStore >::State = typename CacheStore::State

Definition at line 673 of file cache.h.

template<class CacheStore>
using fst::GCCacheStore< CacheStore >::StateId = typename Arc::StateId

Definition at line 675 of file cache.h.

Constructor & Destructor Documentation

template<class CacheStore>
fst::GCCacheStore< CacheStore >::GCCacheStore ( const CacheOptions opts)
inlineexplicit

Definition at line 678 of file cache.h.

Member Function Documentation

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

Definition at line 703 of file cache.h.

template<class CacheStore>
size_t fst::GCCacheStore< CacheStore >::CacheLimit ( ) const
inline

Definition at line 777 of file cache.h.

template<class CacheStore>
size_t fst::GCCacheStore< CacheStore >::CacheSize ( ) const
inline

Definition at line 774 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::Clear ( )
inline

Definition at line 738 of file cache.h.

template<class CacheStore>
StateId fst::GCCacheStore< CacheStore >::CountStates ( ) const
inline

Definition at line 743 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::Delete ( )
inline

Definition at line 756 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::DeleteArcs ( State state)
inline

Definition at line 722 of file cache.h.

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

Definition at line 730 of file cache.h.

template<class CacheStore>
bool fst::GCCacheStore< CacheStore >::Done ( ) const
inline

Definition at line 747 of file cache.h.

template<class CacheStore >
void fst::GCCacheStore< CacheStore >::GC ( const State current,
bool  free_recent,
float  cache_fraction = 0.666 
)

Definition at line 790 of file cache.h.

template<class CacheStore>
State* fst::GCCacheStore< CacheStore >::GetMutableState ( StateId  s)
inline

Definition at line 690 of file cache.h.

template<class CacheStore>
const State* fst::GCCacheStore< CacheStore >::GetState ( StateId  s) const
inline

Definition at line 687 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::Next ( )
inline

Definition at line 751 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::Reset ( )
inline

Definition at line 753 of file cache.h.

template<class CacheStore>
void fst::GCCacheStore< CacheStore >::SetArcs ( State state)
inline

Definition at line 713 of file cache.h.

template<class CacheStore>
StateId fst::GCCacheStore< CacheStore >::Value ( ) const
inline

Definition at line 749 of file cache.h.


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