FST  openfst-1.7.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 646 of file cache.h.

Member Typedef Documentation

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

Definition at line 649 of file cache.h.

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

Definition at line 648 of file cache.h.

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

Definition at line 650 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 653 of file cache.h.

Member Function Documentation

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

Definition at line 678 of file cache.h.

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

Definition at line 752 of file cache.h.

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

Definition at line 749 of file cache.h.

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

Definition at line 713 of file cache.h.

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

Definition at line 718 of file cache.h.

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

Definition at line 731 of file cache.h.

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

Definition at line 697 of file cache.h.

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

Definition at line 705 of file cache.h.

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

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

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

Definition at line 665 of file cache.h.

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

Definition at line 662 of file cache.h.

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

Definition at line 726 of file cache.h.

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

Definition at line 728 of file cache.h.

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

Definition at line 688 of file cache.h.

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

Definition at line 724 of file cache.h.


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