Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
RBTree< Key, Value >::Node Struct Reference

The metadata for a tree node. More...

#include <RBTree.hxx>

Public Member Functions

 RB_ENTRY (Node) entry
 The pointer structure.
 
 Node ()
 Default constructor.
 
 Node (Key key, Value value)
 Constructor.
 

Public Attributes

Key key
 key by which to sort the node
 
Value value
 value of the node
 

Detailed Description

template<typename Key, typename Value>
struct RBTree< Key, Value >::Node

The metadata for a tree node.

Definition at line 81 of file RBTree.hxx.

Constructor & Destructor Documentation

◆ Node() [1/2]

template<typename Key , typename Value >
RBTree< Key, Value >::Node::Node ( )
inline

Default constructor.

Does not initialize key or value.

Definition at line 91 of file RBTree.hxx.

◆ Node() [2/2]

template<typename Key , typename Value >
RBTree< Key, Value >::Node::Node ( Key  key,
Value  value 
)
inline

Constructor.

Parameters
keyinitial value of key
valueinitial value of value

Definition at line 99 of file RBTree.hxx.

Member Data Documentation

◆ key

template<typename Key , typename Value >
Key RBTree< Key, Value >::Node::key

key by which to sort the node

Definition at line 86 of file RBTree.hxx.

◆ value

template<typename Key , typename Value >
Value RBTree< Key, Value >::Node::value

value of the node

Definition at line 87 of file RBTree.hxx.


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