LatticeDeterminizerPruned< 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::LatticeDeterminizerPruned< Weight, IntType >::SubsetEqualStates

Definition at line 473 of file determinize-lattice-pruned.cc.

Member Function Documentation

◆ operator()()

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

Definition at line 475 of file determinize-lattice-pruned.cc.

References KALDI_ASSERT.

475  {
476  size_t sz = s1->size();
477  KALDI_ASSERT(sz>=0);
478  if (sz != s2->size()) return false;
479  typename vector<Element>::const_iterator iter1 = s1->begin(),
480  iter1_end = s1->end(), iter2=s2->begin();
481  for (; iter1 < iter1_end; ++iter1, ++iter2) {
482  if (iter1->state != iter2->state) return false;
483  }
484  return true;
485  }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185

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