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 288 of file determinize-star-inl.h.

Member Function Documentation

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

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

290  { // hashes only the state and string.
291  size_t hash = 0, factor = 1;
292  for (typename vector<Element>::const_iterator iter = subset->begin();
293  iter != subset->end(); ++iter) {
294  hash *= factor;
295  hash += iter->state + 103333 * iter->string;
296  factor *= 23531; // these numbers are primes.
297  }
298  return hash;
299  }

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