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.
|
#include "timemory/components/base/data.hpp"
Public Types | |
using | value_type = Tp |
using | accum_type = Tp |
using | last_type = Tp |
Public Member Functions | |
const value_type & | get_value () const |
const value_type & | get_accum () const |
const value_type & | get_last () const |
void | set_value (value_type v) |
void | set_accum (value_type v) |
void | set_last (value_type v) |
base_data ()=default | |
~base_data ()=default | |
base_data & | operator= (base_data &&)=default |
base_data (base_data &&)=default | |
base_data (const base_data &rhs)=default | |
base_data & | operator= (const base_data &rhs)=default |
template<typename ArchiveT > | |
void | serialize (ArchiveT &ar, const unsigned int=0) |
value_type & | load (bool is_transient) |
const value_type & | load (bool is_transient) const |
void | plus (const value_type &rhs) |
void | minus (const value_type &rhs) |
void | multiply (const value_type &rhs) |
void | divide (const value_type &rhs) |
template<typename Up > | |
auto | plus (Up &&rhs) -> decltype((void) std::forward< Up >(rhs).get_value(),(void) std::forward< Up >(rhs).get_accum(), void()) |
template<typename Up > | |
auto | minus (Up &&rhs) -> decltype((void) std::forward< Up >(rhs).get_value(),(void) std::forward< Up >(rhs).get_accum(), void()) |
template<typename Up > | |
auto | multiply (Up &&rhs) -> decltype((void) std::forward< Up >(rhs).get_value(),(void) std::forward< Up >(rhs).get_accum(), void()) |
template<typename Up > | |
auto | divide (Up &&rhs) -> decltype((void) std::forward< Up >(rhs).get_value(),(void) std::forward< Up >(rhs).get_accum(), void()) |
Protected Member Functions | |
void | reset () |
Protected Attributes | |
value_type | value = Tp{} |
value_type | accum = Tp{} |
value_type | last = Tp{} |
Friends | |
template<typename Up , typename ValueT > | |
struct | base |
using tim::component::base_data< Tp, 3 >::accum_type = Tp |
using tim::component::base_data< Tp, 3 >::last_type = Tp |
using tim::component::base_data< Tp, 3 >::value_type = Tp |
|
default |
|
default |
|
default |
|
default |
|
inline |
Definition at line 366 of file data.hpp.
References tim::math::compute< Tp, Up >::divide().
|
inline |
Definition at line 401 of file data.hpp.
References tim::math::compute< Tp, Up >::divide().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 354 of file data.hpp.
References tim::math::compute< Tp, Up >::minus().
|
inline |
|
inline |
Definition at line 360 of file data.hpp.
References tim::math::compute< Tp, Up >::multiply().
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |