FST
openfst-1.8.2
OpenFst Library
|
#include <cache.h>
Public Types | |
using | Arc = A |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | ArcAllocator = M |
using | StateAllocator = typename std::allocator_traits< ArcAllocator >::template rebind_alloc< CacheState< A, M >> |
Public Member Functions | |
CacheState (const ArcAllocator &alloc) | |
CacheState (const CacheState< A > &state, const ArcAllocator &alloc) | |
void | Reset () |
Weight | Final () const |
size_t | NumInputEpsilons () const |
size_t | NumOutputEpsilons () const |
size_t | NumArcs () const |
const Arc & | GetArc (size_t n) const |
const Arc * | Arcs () const |
uint8_t | Flags () const |
int | RefCount () const |
void | SetFinal (Weight weight=Weight::One()) |
void | ReserveArcs (size_t n) |
void | AddArc (const Arc &arc) |
void | AddArc (Arc &&arc) |
void | PushArc (const Arc &arc) |
void | PushArc (Arc &&arc) |
template<class... T> | |
void | EmplaceArc (T &&...ctor_args) |
void | SetArcs () |
void | SetArc (const Arc &arc, size_t n) |
void | DeleteArcs () |
void | DeleteArcs (size_t n) |
void | SetFlags (uint8_t flags, uint8_t mask) const |
int | IncrRefCount () const |
int | DecrRefCount () const |
int * | MutableRefCount () const |
void * | operator new (size_t size, StateAllocator *alloc) |
Static Public Member Functions | |
static void | Destroy (CacheState< Arc > *state, StateAllocator *alloc) |
using fst::CacheState< A, M >::Arc = A |
using fst::CacheState< A, M >::ArcAllocator = M |
using fst::CacheState< A, M >::Label = typename Arc::Label |
using fst::CacheState< A, M >::StateAllocator = typename std::allocator_traits< ArcAllocator>::template rebind_alloc<CacheState<A, M>> |
using fst::CacheState< A, M >::StateId = typename Arc::StateId |
using fst::CacheState< A, M >::Weight = typename Arc::Weight |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |