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::operation::record< Tp > Struct Template Reference

#include "timemory/operations/types/record.hpp"

+ Collaboration diagram for tim::operation::record< Tp >:

Public Types

using type = Tp
 

Public Member Functions

 TIMEMORY_DELETED_OBJECT (record) record(type &obj
 
template<typename T = type, typename... Args, enable_if_t< check_record_type< T >::value, char > = 0>
 record (T &obj, Args &&... args)
 
template<typename T = type, typename... Args, enable_if_t<!check_record_type< T >::value, char > = 0>
 record (T &, Args &&...)
 
template<typename Tp >
 record (type &obj, const type &rhs)
 

Public Attributes

const typerhs
 

Detailed Description

template<typename Tp>
struct tim::operation::record< Tp >

Definition at line 48 of file record.hpp.

Member Typedef Documentation

◆ type

template<typename Tp >
using tim::operation::record< Tp >::type = Tp

Definition at line 50 of file record.hpp.

Constructor & Destructor Documentation

◆ record() [1/3]

template<typename Tp >
template<typename T , typename... Args, enable_if_t< check_record_type< T >::value, char > >
tim::operation::record< Tp >::record ( T &  obj,
Args &&...  args 
)
explicit

Definition at line 127 of file record.hpp.

128{
129 sfinae<type>(obj, 0, 0, std::forward<Args>(args)...);
130}

◆ record() [2/3]

template<typename Tp >
template<typename T , typename... Args, enable_if_t<!check_record_type< T >::value, char > >
tim::operation::record< Tp >::record ( T &  ,
Args &&  ... 
)
explicit

Definition at line 136 of file record.hpp.

137{}

◆ record() [3/3]

template<typename Tp >
template<typename Tp >
tim::operation::record< Tp >::record ( type obj,
const type rhs 
)

Definition at line 118 of file record.hpp.

119{
120 sfinae(obj, rhs, 0, 0);
121}
const type & rhs
Definition: record.hpp:54

Member Function Documentation

◆ TIMEMORY_DELETED_OBJECT()

template<typename Tp >
tim::operation::record< Tp >::TIMEMORY_DELETED_OBJECT ( record< Tp >  ) &

Member Data Documentation

◆ rhs

template<typename Tp >
const type& tim::operation::record< Tp >::rhs

Definition at line 54 of file record.hpp.


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