Public Types | Public Member Functions

fst::VectorStateTable< T, FP > Class Template Reference

#include <fst/state-table.h>

Collaboration diagram for fst::VectorStateTable< T, FP >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef T StateTuple
typedef StateTuple::StateId StateId
typedef StateTuple::FilterState FilterState

Public Member Functions

 VectorStateTable (FP *fp=0)
 ~VectorStateTable ()
StateId FindState (const StateTuple &tuple)
const StateTupleTuple (StateId s) const
StateId Size () const
const FP & Fingerprint () const

Detailed Description

template<class T, class FP>
class fst::VectorStateTable< T, FP >

An implementation using a vector for the tuple to state mapping. It is passed a function object FP that should fingerprint tuples uniquely to an integer that can used as a vector index. Normally, VectorStateTable constructs the FP object. The user can instead pass in this object; in that case, VectorStateTable takes its ownership.

Definition at line 212 of file state-table.h.


Member Typedef Documentation

template<class T, class FP>
typedef StateTuple::FilterState fst::VectorStateTable< T, FP >::FilterState
template<class T, class FP>
typedef StateTuple::StateId fst::VectorStateTable< T, FP >::StateId
template<class T, class FP>
typedef T fst::VectorStateTable< T, FP >::StateTuple

Constructor & Destructor Documentation

template<class T, class FP>
fst::VectorStateTable< T, FP >::VectorStateTable ( FP *  fp = 0  )  [inline, explicit]

Definition at line 218 of file state-table.h.

template<class T, class FP>
fst::VectorStateTable< T, FP >::~VectorStateTable (  )  [inline]

Definition at line 221 of file state-table.h.


Member Function Documentation

template<class T, class FP>
StateId fst::VectorStateTable< T, FP >::FindState ( const StateTuple tuple  )  [inline]

Definition at line 223 of file state-table.h.

template<class T, class FP>
const FP& fst::VectorStateTable< T, FP >::Fingerprint (  )  const [inline]

Definition at line 241 of file state-table.h.

template<class T, class FP>
StateId fst::VectorStateTable< T, FP >::Size (  )  const [inline]

Definition at line 239 of file state-table.h.

template<class T, class FP>
const StateTuple& fst::VectorStateTable< T, FP >::Tuple ( StateId  s  )  const [inline]

Definition at line 235 of file state-table.h.


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