Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Node4< T > Class Template Reference

Quadruply-linked node. More...

#include <Node.h>

List of all members.

Public Member Functions

void add (T *node)
 Add node to my children.
void remove ()
 Remove myself from parent leaving my child branch intact.
void setAsFirstChild ()
 Make myself the first child.
void setAsLastChild ()
 Make myself the last child.
T * next (const T *terminal) const
 Returns next node using depth-first traversal.
void print (const char *append="")
 Print my value.
void printDescendents (const char *append="")
 Print indented outline of my descendents.

Public Attributes

T * parent
 Parent node.
T * child
 Child node.
T * right
 Right sibling.
T * left
 Left sibling.

Detailed Description

template<class T>
class gam::Node4< T >

Quadruply-linked node.


Member Function Documentation

T * next ( const T *  terminal) const

Returns next node using depth-first traversal.

Returns 0 when the next node equals the terminal node.

void remove ( )

Remove myself from parent leaving my child branch intact.

This method should always be called from the instance's destructor.


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