lab_avl
AVL Apocalypse
AVLTree< K, V >::Node Struct Reference

Node represents a tree node; that is, an element in a AVLTree. More...

+ Collaboration diagram for AVLTree< K, V >::Node:

Public Member Functions

 Node (const K &newKey, const V &newValue)
 Node constructor; sets children to point to NULL. More...
 

Detailed Description

template<class K, class V>
struct AVLTree< K, V >::Node

Node represents a tree node; that is, an element in a AVLTree.

It stores a key, value, and pointers to its left and right children.

Constructor & Destructor Documentation

◆ Node()

template<class K , class V >
AVLTree< K, V >::Node::Node ( const K &  newKey,
const V &  newValue 
)
inline

Node constructor; sets children to point to NULL.

Parameters
newKeyThe object to use as a key
newValueThe templated data element that the constructed node will hold.

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