All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 469 of file determinize-lattice-pruned.cc.

Member Function Documentation

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

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

References KALDI_ASSERT.

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

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