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

bool Transducer::isEmpty ( int const   state  )  const

Checks if a state is empty (not outgoing transductions)

Parameters:
state the state to check
Returns:
true if the state is empty

Definition at line 453 of file Transducer.C.

References transitions.

{
  map<int, multimap<int, int> >::const_iterator it;

  it = transitions.find(state);
  if(it != transitions.end())
  {
    if((it->second).size() > 0)
    {
      return false;
    }
  }

  return true;
}


Generated by  Doxygen 1.6.0   Back to index