#include <cfloat>
#include <iostream>
#include <list>
#include "etree.hh"
Functions | |
ostream & | operator<< (ostream &os, Etree &outtree) |
Serializes the tree to the stream. | |
istream & | operator>> (istream &is, Etree &intree) |
Reads an Evolving Tree from a binary stream. |
This file contains all the functions that make the Evolving Tree tick.
|
Serializes the tree to the stream. Note that datacache is not exported. Also no magic numbers or checksums are used. The order is as follows. First the constants in the order they appear in the class declaration. Next comes the fringe, then the serialized nodes.
|
|
Reads an Evolving Tree from a binary stream. No checking of any kind is done.
|