Public Member Functions

fst::VectorHashStateTable< T, Select, FP, H > Class Template Reference

#include <fst/state-table.h>

Inherits VectorHashBiTable< T::StateId, T, Select, FP, H >.

Collaboration diagram for fst::VectorHashStateTable< T, Select, FP, H >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VectorHashStateTable (Select *select, FP *fingerprint, H *hash, size_t vector_size=0, size_t tuple_size=0)
StateId FindState (const StateTuple &tuple)
const StateTuple & Tuple (StateId s) const

Detailed Description

template<class T, class Select, class FP, class H>
class fst::VectorHashStateTable< T, Select, FP, H >

An implementation using a vector and a compact hash table. The selection functor returns true for tuples to be hashed in the vector. The fingerprint functor should fingerprint tuples uniquely to an integer that can be used as a vector index. A hash functor is used when hashing tuples into the compact hash table.

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


Constructor & Destructor Documentation

template<class T , class Select , class FP , class H >
fst::VectorHashStateTable< T, Select, FP, H >::VectorHashStateTable ( Select *  select,
FP *  fingerprint,
H *  hash,
size_t  vector_size = 0,
size_t  tuple_size = 0 
) [inline]

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


Member Function Documentation

template<class T , class Select , class FP , class H >
StateId fst::VectorHashStateTable< T, Select, FP, H >::FindState ( const StateTuple &  tuple  )  [inline]

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

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

Definition at line 155 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