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

int & Collection::add ( const set< int > &  t )

Adds an element to the collection

Parameters:
tthe element to be added

Definition at line 55 of file collection.cc.

{
  index[t] = index.size()-1;
  element.push_back(&(index.find(t)->first));
  return index[t];
}

Generated by  Doxygen 1.6.0   Back to index