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

trait that specifies or determines if a component collects any data. Default behavior is to check if the component is available and extract the type and value fields from tim::trait::component_value_type. When a component is available, the 'type' of this trait will return the 'value type' for a component regardless of whether it was specified within the component definition or if it was declared via a type-trait. The constexpr 'value' boolean indicates whether the 'type' is not a null type. More...

#include "timemory/mpl/type_traits.hpp"

+ Collaboration diagram for tim::trait::collects_data< T >:

Public Types

using type = component_value_type_t< T >
 

Static Public Attributes

static constexpr bool value = (!concepts::is_null_type<type>::value)
 

Detailed Description

template<typename T>
struct tim::trait::collects_data< T >

trait that specifies or determines if a component collects any data. Default behavior is to check if the component is available and extract the type and value fields from tim::trait::component_value_type. When a component is available, the 'type' of this trait will return the 'value type' for a component regardless of whether it was specified within the component definition or if it was declared via a type-trait. The constexpr 'value' boolean indicates whether the 'type' is not a null type.

Definition at line 380 of file type_traits.hpp.

Member Typedef Documentation

◆ type

Definition at line 382 of file type_traits.hpp.

Member Data Documentation

◆ value

template<typename T >
constexpr bool tim::trait::collects_data< T >::value = (!concepts::is_null_type<type>::value)
staticconstexpr

Definition at line 383 of file type_traits.hpp.


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