Skip to content

CRedBlackTreeNode<T>

CRedBlackTreeNode

CRedBlackTreeNode is a helper class used in implementing the CRedBlackTree class.

Description

The CRedBlackTreeNode class is a node of the CRedBlackTree. Tree navigation methods are implemented in the class.

Declaration

template<typename T>
   class CRedBlackTreeNode

Header

#include <Generic\RedBlackTree.mqh>

Class Methods

MethodDescription
ValueReturns and sets a node value
ParentReturns and sets a pointer to the parent node
LeftReturns and sets a pointer to the left node
RightReturns and sets a pointer to the right node
ColorReturns and sets a node color
IsLeafDetermines whether the specified node is a leaf
CreateEmptyNodeCreates a new black node with no parent and children, and returns a pointer to it
Last updated on