Public Types | Public Member Functions | Public Attributes

fst::CacheState< A > Struct Template Reference

#include <fst/cache.h>

Collaboration diagram for fst::CacheState< A >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef A Arc
typedef A::Weight Weight
typedef A::StateId StateId

Public Member Functions

 CacheState ()
void Reset ()

Public Attributes

Weight final
 Final weight.
vector< A > arcs
 Arcs represenation.
size_t niepsilons
 # of input epsilons
size_t noepsilons
 # of output epsilons
uint32 flags
int ref_count

Detailed Description

template<class A>
struct fst::CacheState< A >

Arcs implemented by an STL vector per state. Similar to VectorState but adds flags and ref count to keep track of what has been cached.

Definition at line 373 of file cache.h.


Member Typedef Documentation

template<class A>
typedef A fst::CacheState< A >::Arc

Definition at line 374 of file cache.h.

template<class A>
typedef A::StateId fst::CacheState< A >::StateId

Definition at line 376 of file cache.h.

template<class A>
typedef A::Weight fst::CacheState< A >::Weight

Definition at line 375 of file cache.h.


Constructor & Destructor Documentation

template<class A>
fst::CacheState< A >::CacheState (  )  [inline]

Definition at line 378 of file cache.h.


Member Function Documentation

template<class A>
void fst::CacheState< A >::Reset (  )  [inline]

Definition at line 380 of file cache.h.


Member Data Documentation

template<class A>
vector<A> fst::CacheState< A >::arcs

Arcs represenation.

Definition at line 387 of file cache.h.

template<class A>
Weight fst::CacheState< A >::final

Final weight.

Definition at line 386 of file cache.h.

template<class A>
uint32 fst::CacheState< A >::flags [mutable]

Definition at line 390 of file cache.h.

template<class A>
size_t fst::CacheState< A >::niepsilons

# of input epsilons

Definition at line 388 of file cache.h.

template<class A>
size_t fst::CacheState< A >::noepsilons

# of output epsilons

Definition at line 389 of file cache.h.

template<class A>
int fst::CacheState< A >::ref_count [mutable]

Definition at line 391 of file cache.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines