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::ert::callback< ExecutorT > Struct Template Reference

for variadic expansion to set the callback More...

#include "timemory/ert/configuration.hpp"

+ Collaboration diagram for tim::ert::callback< ExecutorT >:

Public Member Functions

template<typename FuncT >
 callback (FuncT &&f)
 
template<typename FuncT >
 callback (ExecutorT &_exec, FuncT &&f)
 

Detailed Description

template<typename ExecutorT>
struct tim::ert::callback< ExecutorT >

for variadic expansion to set the callback

Definition at line 628 of file configuration.hpp.

Constructor & Destructor Documentation

◆ callback() [1/2]

template<typename ExecutorT >
template<typename FuncT >
tim::ert::callback< ExecutorT >::callback ( FuncT &&  f)
inline

Definition at line 631 of file configuration.hpp.

632 {
633 ExecutorT::get_callback() = f;
634 }

◆ callback() [2/2]

template<typename ExecutorT >
template<typename FuncT >
tim::ert::callback< ExecutorT >::callback ( ExecutorT &  _exec,
FuncT &&  f 
)
inline

Definition at line 637 of file configuration.hpp.

638 {
639 _exec.callback = f;
640 }

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