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::empty_storage Struct Reference

A very lightweight storage class which provides nothing. More...

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

+ Collaboration diagram for tim::component::empty_storage:

Public Member Functions

constexpr bool empty () const
 
constexpr size_t size () const
 
constexpr size_t true_size () const
 
constexpr void reset () const
 
constexpr void print () const
 
template<typename ArchiveT >
constexpr void do_serialize (ArchiveT &)
 

Static Public Member Functions

static constexpr empty_storagenoninit_instance ()
 

Detailed Description

A very lightweight storage class which provides nothing.

Definition at line 50 of file declaration.hpp.

Member Function Documentation

◆ do_serialize()

template<typename ArchiveT >
constexpr void tim::component::empty_storage::do_serialize ( ArchiveT &  )
inlineconstexpr

Definition at line 59 of file declaration.hpp.

60 {}

◆ empty()

constexpr bool tim::component::empty_storage::empty ( ) const
inlineconstexpr

Definition at line 53 of file declaration.hpp.

53{ return true; }

◆ noninit_instance()

static constexpr empty_storage * tim::component::empty_storage::noninit_instance ( )
inlinestaticconstexpr

Definition at line 52 of file declaration.hpp.

52{ return nullptr; }

◆ print()

constexpr void tim::component::empty_storage::print ( ) const
inlineconstexpr

Definition at line 57 of file declaration.hpp.

57{}

◆ reset()

constexpr void tim::component::empty_storage::reset ( ) const
inlineconstexpr

Definition at line 56 of file declaration.hpp.

56{}

◆ size()

constexpr size_t tim::component::empty_storage::size ( ) const
inlineconstexpr

◆ true_size()

constexpr size_t tim::component::empty_storage::true_size ( ) const
inlineconstexpr

Definition at line 55 of file declaration.hpp.

55{ return 0; }

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