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.
tim::component::base_data< Tp, 0 > Struct Template Reference

#include "timemory/components/base/data.hpp"

+ Collaboration diagram for tim::component::base_data< Tp, 0 >:

Public Types

using value_type = null_type
 

Public Member Functions

value_type get_value () const
 
value_type get_accum () const
 
value_type get_last () const
 
void set_value (value_type)
 
void set_accum (value_type)
 
void set_last (value_type)
 
 base_data ()=default
 
 ~base_data ()=default
 
base_dataoperator= (base_data &&)=default
 
 base_data (base_data &&)=default
 
 base_data (const base_data &)=default
 
base_dataoperator= (const base_data &)=default
 
value_type load (bool)
 
value_type load (bool) const
 
void plus (const value_type &)
 
void minus (const value_type &)
 
void multiply (const value_type &)
 
void divide (const value_type &)
 
template<typename Up >
void plus (Up &&)
 
template<typename Up >
void minus (Up &&)
 
template<typename Up >
void multiply (Up &&)
 
template<typename Up >
void divide (Up &&)
 

Protected Attributes

value_type value = {}
 
value_type accum = {}
 
value_type last = {}
 

Detailed Description

template<typename Tp>
struct tim::component::base_data< Tp, 0 >

Definition at line 44 of file data.hpp.

Member Typedef Documentation

◆ value_type

template<typename Tp >
using tim::component::base_data< Tp, 0 >::value_type = null_type

Definition at line 46 of file data.hpp.

Constructor & Destructor Documentation

◆ base_data() [1/3]

template<typename Tp >
tim::component::base_data< Tp, 0 >::base_data ( )
default

◆ ~base_data()

template<typename Tp >
tim::component::base_data< Tp, 0 >::~base_data ( )
default

◆ base_data() [2/3]

template<typename Tp >
tim::component::base_data< Tp, 0 >::base_data ( base_data< Tp, 0 > &&  )
default

◆ base_data() [3/3]

template<typename Tp >
tim::component::base_data< Tp, 0 >::base_data ( const base_data< Tp, 0 > &  )
default

Member Function Documentation

◆ divide() [1/2]

template<typename Tp >
void tim::component::base_data< Tp, 0 >::divide ( const value_type )
inline

Definition at line 70 of file data.hpp.

70{}

◆ divide() [2/2]

template<typename Tp >
template<typename Up >
void tim::component::base_data< Tp, 0 >::divide ( Up &&  )
inline

Definition at line 85 of file data.hpp.

86 {}

◆ get_accum()

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::get_accum ( ) const
inline

Definition at line 49 of file data.hpp.

49{ return value_type{}; }

◆ get_last()

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::get_last ( ) const
inline

Definition at line 50 of file data.hpp.

50{ return value_type{}; }

◆ get_value()

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::get_value ( ) const
inline

Definition at line 48 of file data.hpp.

48{ return value_type{}; }

◆ load() [1/2]

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::load ( bool  )
inline

Definition at line 64 of file data.hpp.

64{ return value_type{}; }

◆ load() [2/2]

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::load ( bool  ) const
inline

Definition at line 65 of file data.hpp.

65{ return value_type{}; }

◆ minus() [1/2]

template<typename Tp >
void tim::component::base_data< Tp, 0 >::minus ( const value_type )
inline

Definition at line 68 of file data.hpp.

68{}

◆ minus() [2/2]

template<typename Tp >
template<typename Up >
void tim::component::base_data< Tp, 0 >::minus ( Up &&  )
inline

Definition at line 77 of file data.hpp.

78 {}

◆ multiply() [1/2]

template<typename Tp >
void tim::component::base_data< Tp, 0 >::multiply ( const value_type )
inline

Definition at line 69 of file data.hpp.

69{}

◆ multiply() [2/2]

template<typename Tp >
template<typename Up >
void tim::component::base_data< Tp, 0 >::multiply ( Up &&  )
inline

Definition at line 81 of file data.hpp.

82 {}

◆ operator=() [1/2]

template<typename Tp >
base_data & tim::component::base_data< Tp, 0 >::operator= ( base_data< Tp, 0 > &&  )
default

◆ operator=() [2/2]

template<typename Tp >
base_data & tim::component::base_data< Tp, 0 >::operator= ( const base_data< Tp, 0 > &  )
default

◆ plus() [1/2]

template<typename Tp >
void tim::component::base_data< Tp, 0 >::plus ( const value_type )
inline

Definition at line 67 of file data.hpp.

67{}

◆ plus() [2/2]

template<typename Tp >
template<typename Up >
void tim::component::base_data< Tp, 0 >::plus ( Up &&  )
inline

Definition at line 73 of file data.hpp.

74 {}

◆ set_accum()

template<typename Tp >
void tim::component::base_data< Tp, 0 >::set_accum ( value_type  )
inline

Definition at line 52 of file data.hpp.

52{}

◆ set_last()

template<typename Tp >
void tim::component::base_data< Tp, 0 >::set_last ( value_type  )
inline

Definition at line 53 of file data.hpp.

53{}

◆ set_value()

template<typename Tp >
void tim::component::base_data< Tp, 0 >::set_value ( value_type  )
inline

Definition at line 51 of file data.hpp.

51{}

Member Data Documentation

◆ accum

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::accum = {}
protected

Definition at line 90 of file data.hpp.

◆ last

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::last = {}
protected

Definition at line 91 of file data.hpp.

◆ value

template<typename Tp >
value_type tim::component::base_data< Tp, 0 >::value = {}
protected

Definition at line 89 of file data.hpp.


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