All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DeterminizerStar< F >::SubsetKey Class Reference

Public Member Functions

size_t operator() (const vector< Element > *subset) const
 

Detailed Description

template<class F>
class fst::DeterminizerStar< F >::SubsetKey

Definition at line 296 of file determinize-star-inl.h.

Member Function Documentation

size_t operator() ( const vector< Element > *  subset) const
inline

Definition at line 298 of file determinize-star-inl.h.

298  { // hashes only the state and string.
299  size_t hash = 0, factor = 1;
300  for (typename vector<Element>::const_iterator iter = subset->begin();
301  iter != subset->end(); ++iter) {
302  hash *= factor;
303  hash += iter->state + 103333 * iter->string;
304  factor *= 23531; // these numbers are primes.
305  }
306  return hash;
307  }

The documentation for this class was generated from the following file: