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

void Collection::write ( FILE *  output )

Write the collection contents to an output stream

Parameters:
outputthe output stream

Definition at line 63 of file collection.cc.

{
  Compression::multibyte_write(element.size(), output);

  for(int i = 0, limit = element.size(); i != limit; i++)
  {
    Compression::multibyte_write(element[i]->size(), output);
    for(set<int>::const_iterator it = element[i]->begin(), 
        limit2 = element[i]->end(); it != limit2; it++)
    {
      Compression::multibyte_write(*it, output);
    }
  }
}

Generated by  Doxygen 1.6.0   Back to index