Class Red-Black-Node

Part of:

package metabang.cl-containers, class bst-node

Default initargs

:right-child → CONTAINERS::*RBT-EMPTY-NODE*:left-child → CONTAINERS::*RBT-EMPTY-NODE*

Direct Superclass

bst-node

Slot

colorInitform:+rbt-color-black+, Initargs:rbt-color; Accessors:rbt-color.
elementInitargs:element, value; Accessors:value, element.
left-childInitargs:left-child.
parentInitargs:parent; Reader:parent.
right-childInitargs:right-child.
treeInitargs:tree; Accessors:tree.

Direct Method

delete-item
node-empty-p

Other Method

bst-node-is-left-childIs this node the left child of its parent?
bst-node-is-right-childIs this node the right child of its parent?
bst-node-replace-childReplace the child of this node.
bst-node-set-left-childSet new-left as the left child of node
bst-node-set-right-childSet new-right as the right child of node
delete-node
find-itemFind item in container using the container's test method for comparisons. The test method must ta...
first-element
insert-itemAdds item to the container
last-element
predecessor
right-most-childWalk down the right side of the tree until a leaf node is found, then return that node
search-for-node
search-for-node*
setffirst-element
setflast-element
sizeReturns the number of items currently in the container.
successor
walk-tree
walk-tree-nodes