C++ Library Extensions 2022.12.09
To help learn modern C++ programming
053-binary_tree05.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 053-binary_tree05.cpp:

Go to the source code of this file.

Classes

class  binary_node< ElementType >
 

Typedefs

using string_t = std::string
 
template<typename ReturnType , typename... Types>
using enable_if_all_types_are_the_same_t = std::enable_if_t< tpf::types::is_same_v< tpf::remove_cv_ref_t< Types >... >, ReturnType >
 
template<typename ElementType >
using node_ptr_t = typename binary_node< ElementType >::node_ptr_t
 

Functions

template<typename ElementType >
void test_remove_node (node_ptr_t< ElementType > &node_ptr, ElementType value)
 
void test_ascending_descending_order ()
 
void test_find_binary_tree ()
 
void test_build_digraph ()
 
void print_usage (string_t appname, const char *msg)
 
int main (int argc, const char *argv[])
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 
auto endL = tpf::endL
 
auto nl = tpf::nl
 
auto nL = tpf::nL
 

Typedef Documentation

◆ enable_if_all_types_are_the_same_t

template<typename ReturnType , typename... Types>
using enable_if_all_types_are_the_same_t = std::enable_if_t<tpf::types::is_same_v<tpf::remove_cv_ref_t<Types>...>, ReturnType>

Definition at line 25 of file 053-binary_tree05.cpp.

◆ node_ptr_t

template<typename ElementType >
using node_ptr_t = typename binary_node<ElementType>::node_ptr_t

Definition at line 463 of file 053-binary_tree05.cpp.

◆ string_t

using string_t = std::string

Definition at line 22 of file 053-binary_tree05.cpp.

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Definition at line 583 of file 053-binary_tree05.cpp.

Here is the call graph for this function:

◆ print_usage()

void print_usage ( string_t  appname,
const char *  msg 
)

Definition at line 563 of file 053-binary_tree05.cpp.

Here is the caller graph for this function:

◆ test_ascending_descending_order()

void test_ascending_descending_order ( )

Definition at line 480 of file 053-binary_tree05.cpp.

Here is the call graph for this function:

◆ test_build_digraph()

void test_build_digraph ( )

Definition at line 547 of file 053-binary_tree05.cpp.

Here is the call graph for this function:

◆ test_find_binary_tree()

void test_find_binary_tree ( )

Definition at line 515 of file 053-binary_tree05.cpp.

Here is the call graph for this function:

◆ test_remove_node()

template<typename ElementType >
void test_remove_node ( node_ptr_t< ElementType > &  node_ptr,
ElementType  value 
)

Definition at line 466 of file 053-binary_tree05.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 16 of file 053-binary_tree05.cpp.

◆ endL

auto endL = tpf::endL

Definition at line 17 of file 053-binary_tree05.cpp.

◆ nl

auto nl = tpf::nl

Definition at line 19 of file 053-binary_tree05.cpp.

◆ nL

auto nL = tpf::nL

Definition at line 20 of file 053-binary_tree05.cpp.

◆ stream

tpf::sstream stream

Definition at line 14 of file 053-binary_tree05.cpp.