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

Public Member Functions

bool operator() (const vector< Element > *s1, const vector< Element > *s2) const
 

Detailed Description

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

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

Member Function Documentation

bool operator() ( const vector< Element > *  s1,
const vector< Element > *  s2 
) const
inline

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

338  {
339  size_t sz = s1->size();
340  assert(sz>=0);
341  if (sz != s2->size()) return false;
342  typename vector<Element>::const_iterator iter1 = s1->begin(),
343  iter1_end = s1->end(), iter2=s2->begin();
344  for (; iter1 < iter1_end; ++iter1, ++iter2) {
345  if (iter1->state != iter2->state) return false;
346  }
347  return true;
348  }

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