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

void TransExe::unifyFinals (  ) 

Reduces all the final states to one

Definition at line 118 of file TransExe.C.

References finals, and node_list.

{
  node_list.resize(node_list.size()+1);

  Node *newfinal = &node_list[node_list.size()-1];

  for(set<Node *>::iterator it = finals.begin(), limit = finals.end(); 
      it != limit; it++)
  {
    (*it)->addTransition(0, 0, newfinal);
  }
  
  finals.clear();
  finals.insert(newfinal);
}


Generated by  Doxygen 1.6.0   Back to index