Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

int Transducer::numberOfTransitions (  )  const

Returns the number of transitions of the transducer

Returns:
the number of transitions

Definition at line 438 of file Transducer.C.

References size(), and transitions.

{
  int counter = 0;

  for(map<int, multimap<int, int> >::const_iterator it = transitions.begin(),
                                                    limit = transitions.end();
      it != limit; it++)
  {
    counter += (it->second).size();
  }

  return counter;
}


Generated by  Doxygen 1.6.0   Back to index