#include <linked_binary_tree.h>
◆ LinkedBinaryTree() [1/3]
Constructs a tree storing zero elements.
◆ ~LinkedBinaryTree()
◆ LinkedBinaryTree() [2/3]
◆ LinkedBinaryTree() [3/3]
◆ add_left()
Creates a new node storing element e, and links the new node as the left child of position p. Should not be called if p already has a (non-null) left child.
◆ add_right()
Creates a new node storing element e, and links the new node as the right child of position p. Should not be called if p already has a (non-null) right child.
◆ add_root()
Creates a root for an empty tree, storing e as the element; should never be called on non-empty tree.
◆ attach()
Attaches the internal structures of trees left and right and subtrees of leaf p, and resets left and right to empty trees. Should not be called on non-leaf p.
◆ empty()
Returns true if the tree does not have any elements.
◆ erase()
Removes the node (and element) at position p, replacing the node with its one child, if any. Should not be called on a node with two children.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ positions()
Returns an inorder sequence of positions.
◆ root()
◆ size()
Returns the number of elements stored in the tree.
◆ rt
◆ sz
The documentation for this class was generated from the following file: