FST  openfst-1.7.1
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 642 of file cache.h.

Member Typedef Documentation

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

Definition at line 645 of file cache.h.

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

Definition at line 644 of file cache.h.

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

Definition at line 646 of file cache.h.

Constructor & Destructor Documentation

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

Definition at line 649 of file cache.h.

Member Function Documentation

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

Definition at line 674 of file cache.h.

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

Definition at line 748 of file cache.h.

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

Definition at line 745 of file cache.h.

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

Definition at line 709 of file cache.h.

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

Definition at line 714 of file cache.h.

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

Definition at line 727 of file cache.h.

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

Definition at line 693 of file cache.h.

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

Definition at line 701 of file cache.h.

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

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

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

Definition at line 661 of file cache.h.

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

Definition at line 658 of file cache.h.

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

Definition at line 722 of file cache.h.

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

Definition at line 724 of file cache.h.

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

Definition at line 684 of file cache.h.

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

Definition at line 720 of file cache.h.


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