C++ Library Extensions 2022.12.09
To help learn modern C++ programming
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
node< ElementType > Class Template Reference

Public Types

using node_ptr_t = std::unique_ptr< node >
 

Public Member Functions

 node (ElementType value=ElementType{})
 
node_ptr_tleft ()
 
const node_ptr_tleft () const
 
node_ptr_tright ()
 
const node_ptr_tright () const
 
nodeinsert (ElementType value)
 
string_t get_node_name ()
 
string_t get_node_definition ()
 
void print_node (std::stringstream &os)
 
string_t build_digraph ()
 
void print (bool bLeft=true)
 

Detailed Description

template<typename ElementType>
class node< ElementType >

Definition at line 10 of file 048-binary_tree.cpp.

Member Typedef Documentation

◆ node_ptr_t

template<typename ElementType >
using node< ElementType >::node_ptr_t = std::unique_ptr<node>

Definition at line 14 of file 048-binary_tree.cpp.

Constructor & Destructor Documentation

◆ node()

template<typename ElementType >
node< ElementType >::node ( ElementType  value = ElementType{})
inline

Definition at line 23 of file 048-binary_tree.cpp.

Member Function Documentation

◆ build_digraph()

template<typename ElementType >
string_t node< ElementType >::build_digraph ( )
inline

Definition at line 91 of file 048-binary_tree.cpp.

Here is the call graph for this function:

◆ get_node_definition()

template<typename ElementType >
string_t node< ElementType >::get_node_definition ( )
inline

Definition at line 59 of file 048-binary_tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_node_name()

template<typename ElementType >
string_t node< ElementType >::get_node_name ( )
inline

Definition at line 52 of file 048-binary_tree.cpp.

Here is the caller graph for this function:

◆ insert()

template<typename ElementType >
node & node< ElementType >::insert ( ElementType  value)
inline

Definition at line 32 of file 048-binary_tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ left() [1/2]

template<typename ElementType >
node_ptr_t & node< ElementType >::left ( )
inline

Definition at line 26 of file 048-binary_tree.cpp.

◆ left() [2/2]

template<typename ElementType >
const node_ptr_t & node< ElementType >::left ( ) const
inline

Definition at line 27 of file 048-binary_tree.cpp.

◆ print()

template<typename ElementType >
void node< ElementType >::print ( bool  bLeft = true)
inline

Definition at line 103 of file 048-binary_tree.cpp.

◆ print_node()

template<typename ElementType >
void node< ElementType >::print_node ( std::stringstream &  os)
inline

Definition at line 70 of file 048-binary_tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ right() [1/2]

template<typename ElementType >
node_ptr_t & node< ElementType >::right ( )
inline

Definition at line 29 of file 048-binary_tree.cpp.

◆ right() [2/2]

template<typename ElementType >
const node_ptr_t & node< ElementType >::right ( ) const
inline

Definition at line 30 of file 048-binary_tree.cpp.


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