|
timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
Basic hierarchical tree implementation. Expects population from tim::graph. More...
#include "timemory/storage/basic_tree.hpp"
Collaboration diagram for tim::basic_tree< Tp >:Public Types | |
| using | this_type = basic_tree< Tp > |
| using | value_type = Tp |
| using | child_type = this_type |
| using | child_pointer = std::shared_ptr< child_type > |
| using | children_type = std::vector< child_pointer > |
| using | children_base = std::vector< child_type > |
Public Member Functions | |
| template<typename GraphT , typename ItrT > | |
| this_type & | operator() (const GraphT &g, ItrT root) |
construction from tim::graph<Tp> More... | |
| this_type & | operator+= (const this_type &rhs) |
| this_type & | operator-= (const this_type &rhs) |
| template<typename Archive > | |
| void | save (Archive &ar, const unsigned int) const |
| template<typename Archive > | |
| void | load (Archive &ar, const unsigned int) |
| auto & | get_value () |
| return the current tree node More... | |
| auto & | get_children () |
| return the array of child nodes More... | |
| const auto & | get_value () const |
| const auto & | get_children () const |
| template<typename GraphT , typename ItrT > | |
| basic_tree< Tp > & | operator() (const GraphT &g, ItrT root) |
Friends | |
| bool | operator== (const this_type &lhs, const this_type &rhs) |
| bool | operator!= (const this_type &lhs, const this_type &rhs) |
Basic hierarchical tree implementation. Expects population from tim::graph.
| Tp | Component type |
Definition at line 43 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::child_pointer = std::shared_ptr<child_type> |
Definition at line 48 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::child_type = this_type |
Definition at line 47 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::children_base = std::vector<child_type> |
Definition at line 50 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::children_type = std::vector<child_pointer> |
Definition at line 49 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::this_type = basic_tree<Tp> |
Definition at line 45 of file basic_tree.hpp.
| using tim::basic_tree< Tp >::value_type = Tp |
Definition at line 46 of file basic_tree.hpp.
|
inline |
return the array of child nodes
Definition at line 70 of file basic_tree.hpp.
Referenced by tim::operation::finalize::merge< Type, true >::operator()().
|
inline |
Definition at line 73 of file basic_tree.hpp.
|
inline |
|
inline |
Definition at line 72 of file basic_tree.hpp.
| void tim::basic_tree< Tp >::load | ( | Archive & | ar, |
| const unsigned int | |||
| ) |
Definition at line 238 of file basic_tree.hpp.
| this_type & tim::basic_tree< Tp >::operator() | ( | const GraphT & | g, |
| ItrT | root | ||
| ) |
construction from tim::graph<Tp>
| basic_tree< Tp > & tim::basic_tree< Tp >::operator() | ( | const GraphT & | g, |
| ItrT | root | ||
| ) |
Definition at line 95 of file basic_tree.hpp.
| basic_tree< Tp > & tim::basic_tree< Tp >::operator+= | ( | const this_type & | rhs | ) |
Definition at line 137 of file basic_tree.hpp.
| basic_tree< Tp > & tim::basic_tree< Tp >::operator-= | ( | const this_type & | rhs | ) |
Definition at line 188 of file basic_tree.hpp.
| void tim::basic_tree< Tp >::save | ( | Archive & | ar, |
| const unsigned int | |||
| ) | const |
Definition at line 226 of file basic_tree.hpp.
Definition at line 82 of file basic_tree.hpp.
Definition at line 75 of file basic_tree.hpp.