lab_trees
Tempestuous Trees
BinaryTree< T >::Node Struct Reference

Represents a tree node; that is, an element in a BinaryTree. More...

#include "binarytree.h"

+ Collaboration diagram for BinaryTree< T >::Node:

Public Member Functions

 Node (const T &element)
 Node element constructor; sets children to point to NULL. More...
 

Detailed Description

template<typename T>
struct BinaryTree< T >::Node

Represents a tree node; that is, an element in a BinaryTree.

It has a data element and pointers to its left and right children.

Constructor & Destructor Documentation

template<typename T >
BinaryTree< T >::Node::Node ( const T &  element)
inline

Node element constructor; sets children to point to NULL.

Parameters
elementThe templated data element that the constructed node will hold.

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