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::get_storage< T > Struct Template Reference

This operation attempts to call a member function which provides a pointer to the data storage structure for a component which should be updated for aggregation/logging. More...

#include "timemory/operations/types.hpp"

+ Collaboration diagram for tim::operation::get_storage< T >:

Public Types

using type = T
 

Public Member Functions

auto operator() (type &obj) const
 

Detailed Description

template<typename T>
struct tim::operation::get_storage< T >

This operation attempts to call a member function which provides a pointer to the data storage structure for a component which should be updated for aggregation/logging.

Template Parameters
TComponent type

Definition at line 791 of file types.hpp.

Member Typedef Documentation

◆ type

template<typename T >
using tim::operation::get_storage< T >::type = T

Definition at line 793 of file types.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
auto tim::operation::get_storage< T >::operator() ( type obj) const
inline

Definition at line 797 of file types.hpp.

798 {
799 return static_cast<storage<type>*>(obj.get_storage());
800 }

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