proj home

Files   Classes   Functions   Hierarchy  

treeindexedD2noderep< INDX > Class Template Reference

#include <treeindexedD2.h>

Collaboration diagram for treeindexedD2noderep< INDX >:

List of all members.

Public Member Functions

 operator stringc () const
 Serialize this object by writing it out as a string.
istream & serializeInverse (istream &istr)
 Inverse of string serialization.

Public Attributes

point4< INDX > nd
 index, left and right and parent indexes.
bool branch
 Left is false, right is true.


Detailed Description

template<typename INDX>
class treeindexedD2noderep< INDX >

Definition at line 183 of file treeindexedD2.h.


Member Function Documentation

template<typename INDX >
treeindexedD2noderep< INDX >::operator stringc (  )  const [inline]

Serialize this object by writing it out as a string.

Definition at line 742 of file treeindexedD2.h.

References treeindexedD2noderep< INDX >::nd.

00743 {
00744   string s((stringc)nd);
00745   if (branch==false)
00746     s += " 0";
00747   else
00748     s += " 1";
00749 
00750   return s;
00751 }

template<typename INDX >
istream & treeindexedD2noderep< INDX >::serializeInverse ( istream &  istr  )  [inline]

Inverse of string serialization.

Definition at line 754 of file treeindexedD2.h.

References treeindexedD2noderep< INDX >::nd.

Referenced by operator>>().

00755 {
00756   istr >> nd;
00757   istr >> branch;
00758   return istr;
00759 }


Member Data Documentation

template<typename INDX>
bool treeindexedD2noderep< INDX >::branch

Left is false, right is true.

Definition at line 190 of file treeindexedD2.h.

Referenced by treeindexedD2< INDX >::insert().

template<typename INDX>
point4<INDX> treeindexedD2noderep< INDX >::nd


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:21 2011 for Chelton Evans Source by  doxygen 1.5.8