Main Page | Class List | File List | Class Members | File Members

node.cc File Reference

The implementation of a node. More...

#include "node.hh"

Functions

ostream & operator<< (ostream &os, Node &outnode)
 Serializes the node.
istream & operator>> (istream &is, Node &innode)
 Creates a new node from binary stream.


Detailed Description

The implementation of a node.

This file contains the implementation of the nodes used in the Evolving Tree.


Function Documentation

ostream& operator<< ostream &  os,
Node outnode
 

Serializes the node.

Writes the node to the given stream as a binary dump. The dump does not have any magic numbers or other identifiers.

Parameters:
os The stream to write to (usually a file).
outnode The node to serialize.
Returns:
The stream written to.

istream& operator>> istream &  is,
Node innode
 

Creates a new node from binary stream.

Reads the binary stream and uses it to build a new node. No error checking of any kind is done, so make sure that the stream points to a sensible location.

Parameters:
is The stream to read (usually a file).
innode The node to write the information to.
Returns:
The stream just read.


Generated on Wed May 17 15:43:41 2006 for The Evolving Tree by  doxygen 1.4.1