All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LatticeDeterminizer< Weight, IntType >::SubsetEqualStates Class Reference

Public Member Functions

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

Detailed Description

template<class Weight, class IntType>
class fst::LatticeDeterminizer< Weight, IntType >::SubsetEqualStates

Definition at line 615 of file determinize-lattice-inl.h.

Member Function Documentation

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

Definition at line 617 of file determinize-lattice-inl.h.

617  {
618  size_t sz = s1->size();
619  assert(sz>=0);
620  if (sz != s2->size()) return false;
621  typename vector<Element>::const_iterator iter1 = s1->begin(),
622  iter1_end = s1->end(), iter2=s2->begin();
623  for (; iter1 < iter1_end; ++iter1, ++iter2) {
624  if (iter1->state != iter2->state) return false;
625  }
626  return true;
627  }

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