DeterminizerStar< F >::SubsetEqualStates Class Reference

Public Member Functions

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

Detailed Description

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

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

Member Function Documentation

◆ operator()()

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

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

330  {
331  size_t sz = s1->size();
332  assert(sz>=0);
333  if (sz != s2->size()) return false;
334  typename std::vector<Element>::const_iterator iter1 = s1->begin(),
335  iter1_end = s1->end(), iter2=s2->begin();
336  for (; iter1 < iter1_end; ++iter1, ++iter2) {
337  if (iter1->state != iter2->state) return false;
338  }
339  return true;
340  }

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