|
CPPX 1.1.2
A Modern C++ Utility Library
|
#include <cppx.h>
Public Member Functions | |
| virtual void | insert (const T &val) |
| bool | contains (const T &val) const |
| virtual void | remove (const T &val) |
| T | get_min () const |
| T | get_max () const |
| T | get_successor (const T &val) const |
| T | get_predecessor (const T &val) const |
Public Member Functions inherited from stl_ext::BinaryTree< T > | |
| BinaryTree () | |
| BinaryTree (const BinaryTree &other) | |
| BinaryTree & | operator= (const BinaryTree &other) |
| BinaryTree (BinaryTree &&other) noexcept=default | |
| BinaryTree & | operator= (BinaryTree &&other) noexcept=default |
| virtual | ~BinaryTree ()=default |
| Node< T > * | get_root () const |
| void | set_root (std::unique_ptr< Node< T > > root) |
| bool | is_empty () const |
| int | size () const |
| void | print_preorder () const |
| void | print_inorder () const |
| void | print_postorder () const |
| void | print_levelorder () const |
| void | set_left (Node< T > *parent, std::unique_ptr< Node< T > > left_child) |
| void | set_right (Node< T > *parent, std::unique_ptr< Node< T > > right_child) |
Additional Inherited Members | |
Static Public Member Functions inherited from stl_ext::BinaryTree< T > | |
| static std::unique_ptr< Node< T > > | make_node (const T &val) |
| static std::unique_ptr< Node< T > > | make_node (const T &val, std::unique_ptr< Node< T > > left, std::unique_ptr< Node< T > > right) |
Protected Member Functions inherited from stl_ext::BinaryTree< T > | |
| void | preorder (const Node< T > *node) const |
| void | inorder (const Node< T > *node) const |
| void | postorder (const Node< T > *node) const |
| void | levelorder (const Node< T > *node) const |
| int | compute_size (const Node< T > *node) const |
Protected Attributes inherited from stl_ext::BinaryTree< T > | |
| std::unique_ptr< Node< T > > | p_head |
| T stl_ext::BST< T >::get_max | ( | ) | const |
| T stl_ext::BST< T >::get_min | ( | ) | const |
Reimplemented in stl_ext::AVLTree< T >.
Reimplemented in stl_ext::AVLTree< T >.