KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Class representing a node in an (globally) aggregated tree, i.e., a node of a timer (or counter) tree where the global aggregation operations has been performed and which can be printed. More...
#include <aggregated_tree_node.hpp>
Public Types | |
using | StorageType = std::unordered_map<GlobalAggregationMode, std::vector<ScalarOrContainer<DataType>>> |
Type into which the aggregated data is stored together with the applied aggregation operation. | |
Public Member Functions | |
auto const & | aggregated_data () const |
Access to stored aggregated data. | |
void | add (GlobalAggregationMode aggregation_mode, std::optional< DataType > data) |
Add scalar of type T to aggregated data storage together with the name of the applied aggregation operation. | |
void | add (GlobalAggregationMode aggregation_mode, std::vector< DataType > const &data) |
Add scalar of type T to aggregated data storage together with the name of the applied aggregation operation. | |
Public Member Functions inherited from kamping::measurements::internal::TreeNode< AggregatedTreeNode< DataType > > | |
TreeNode () | |
Constructs node without pointer to parent and empty name. | |
TreeNode (std::string const &name) | |
Constructs node without pointer to parent. | |
TreeNode (std::string const &name, AggregatedTreeNode< DataType > *parent) | |
Constructs node pointer to parent. | |
auto & | find_or_insert (std::string const &name) |
Searches the node's children for a node with the given name. If there is no such child a new node is inserted. | |
auto & | parent_ptr () |
Access to the parent pointer. | |
auto const & | children () const |
Access to the node's children. | |
auto const & | name () const |
Access to the node's children. | |
Public Attributes | |
StorageType | _aggregated_data |
Storage of the aggregated data. | |
Class representing a node in an (globally) aggregated tree, i.e., a node of a timer (or counter) tree where the global aggregation operations has been performed and which can be printed.
DataType | Underlying data type. |
|
inline |
Add scalar of type T to aggregated data storage together with the name of the applied aggregation operation.
aggregation_mode | Aggregation mode that has been applied to the data. |
data | Scalar resulted from applying the given aggregation operation. |
|
inline |
Add scalar of type T to aggregated data storage together with the name of the applied aggregation operation.
aggregation_mode | Aggregation mode that has been applied to the duration data. |
data | Vector of Scalars resulted from applying the given aggregation operation. |
|
inline |
Access to stored aggregated data.