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::api_output_archive< Api > Struct Template Reference

trait that configures the default output archive type for an entire API specification, e.g. TIMEMORY_API (which is struct tim::project::timemory). The output archive format of individual components is determined from the derived tim::trait::output_archive More...

#include "timemory/mpl/type_traits.hpp"

+ Collaboration diagram for tim::trait::api_output_archive< Api >:

Public Types

using default_type = TIMEMORY_OUTPUT_ARCHIVE
 
using type = conditional_t< is_default_v, conditional_t< is_pretty_v, cereal::PrettyJSONOutputArchive, cereal::MinimalJSONOutputArchive >, default_type >
 

Static Public Attributes

static constexpr bool is_default_v = std::is_same<default_type, type_list<>>::value
 
static constexpr bool is_pretty_v = pretty_archive<void>::value
 

Detailed Description

template<typename Api>
struct tim::trait::api_output_archive< Api >

trait that configures the default output archive type for an entire API specification, e.g. TIMEMORY_API (which is struct tim::project::timemory). The output archive format of individual components is determined from the derived tim::trait::output_archive

Definition at line 532 of file type_traits.hpp.

Member Typedef Documentation

◆ default_type

Definition at line 534 of file type_traits.hpp.

◆ type

template<typename Api >
using tim::trait::api_output_archive< Api >::type = conditional_t<is_default_v, conditional_t<is_pretty_v, cereal::PrettyJSONOutputArchive, cereal::MinimalJSONOutputArchive>, default_type>

Definition at line 539 of file type_traits.hpp.

Member Data Documentation

◆ is_default_v

template<typename Api >
constexpr bool tim::trait::api_output_archive< Api >::is_default_v = std::is_same<default_type, type_list<>>::value
staticconstexpr

Definition at line 536 of file type_traits.hpp.

◆ is_pretty_v

template<typename Api >
constexpr bool tim::trait::api_output_archive< Api >::is_pretty_v = pretty_archive<void>::value
staticconstexpr

Definition at line 537 of file type_traits.hpp.


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