FST
openfst-1.8.2
OpenFst Library
|
#include <cache.h>
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 State * | GetState (StateId s) const |
State * | GetMutableState (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 |
using fst::GCCacheStore< CacheStore >::Arc = typename State::Arc |
using fst::GCCacheStore< CacheStore >::State = typename CacheStore::State |
using fst::GCCacheStore< CacheStore >::StateId = typename Arc::StateId |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void fst::GCCacheStore< CacheStore >::GC | ( | const State * | current, |
bool | free_recent, | ||
float | cache_fraction = 0.666 |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |