Claw  1.7.3
Public Member Functions | Public Attributes | List of all members
claw::binary_node< U > Class Template Reference

Basic binary node. More...

#include <binary_node.hpp>

Public Member Functions

 binary_node ()
 Binary node constructor.
 binary_node (const binary_node &that)
 Binary node copy constructor.
 ~binary_node ()
 Binary node destructor. Deletes the whole subtree.
void clear ()
 Clear right and left childs. Memory's not freed.

Public Attributes

U * left
 Left child.
U * right
 Right child.

Detailed Description

template<class U>
class claw::binary_node< U >

Basic binary node.

Author
Julien Jorge

Definition at line 41 of file binary_node.hpp.

Constructor & Destructor Documentation

template<class U >
claw::binary_node< U >::binary_node ( )
explicit

Binary node constructor.

Postcondition
(left==NULL) && (right==NULL)

Definition at line 39 of file binary_node.tpp.

template<class U >
claw::binary_node< U >::binary_node ( const binary_node< U > &  that)
explicit

Binary node copy constructor.

Parameters
thatNode to copy from.

Definition at line 51 of file binary_node.tpp.

References claw::binary_node< U >::left, and claw::binary_node< U >::right.

Member Function Documentation

template<class U >
void claw::binary_node< U >::clear ( )

Clear right and left childs. Memory's not freed.

Postcondition
this->left == NULL && this->right == NULL

Definition at line 70 of file binary_node.tpp.


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