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::policy::output_archive< cereal::MinimalJSONOutputArchive, Api > Struct Template Reference

partial specialization for MinimalJSONOutputArchive More...

#include "timemory/mpl/policy.hpp"

+ Collaboration diagram for tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >:

Public Types

using type = cereal::MinimalJSONOutputArchive
 
using pointer = std::shared_ptr< type >
 
using option_type = typename type::Options
 
using indent_type = typename option_type::IndentChar
 

Static Public Member Functions

static unsigned int & precision ()
 
static unsigned int & indent_length ()
 
static indent_typeindent_char ()
 
static pointer get (std::ostream &os)
 

Detailed Description

template<typename Api>
struct tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >

partial specialization for MinimalJSONOutputArchive

Definition at line 184 of file policy.hpp.

Member Typedef Documentation

◆ indent_type

template<typename Api >
using tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::indent_type = typename option_type::IndentChar

Definition at line 189 of file policy.hpp.

◆ option_type

template<typename Api >
using tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::option_type = typename type::Options

Definition at line 188 of file policy.hpp.

◆ pointer

template<typename Api >
using tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::pointer = std::shared_ptr<type>

Definition at line 187 of file policy.hpp.

◆ type

template<typename Api >
using tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::type = cereal::MinimalJSONOutputArchive

Definition at line 186 of file policy.hpp.

Member Function Documentation

◆ get()

template<typename Api >
static pointer tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::get ( std::ostream &  os)
inlinestatic

Definition at line 207 of file policy.hpp.

208 {
209 // Option args: precision, spacing, indent size
210 // The last two options are meaningless for the minimal writer
212 return std::make_shared<type>(os, opts);
213 }
const std::string std::ostream * os

References tim::os, and tim::precision.

◆ indent_char()

template<typename Api >
static indent_type & tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::indent_char ( )
inlinestatic

Definition at line 201 of file policy.hpp.

202 {
203 static indent_type value = indent_type::space;
204 return value;
205 }

◆ indent_length()

template<typename Api >
static unsigned int & tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::indent_length ( )
inlinestatic

Definition at line 196 of file policy.hpp.

197 {
198 static unsigned int value = 0;
199 return value;
200 }

◆ precision()

template<typename Api >
static unsigned int & tim::policy::output_archive< cereal::MinimalJSONOutputArchive, Api >::precision ( )
inlinestatic

Definition at line 191 of file policy.hpp.

192 {
193 static unsigned int value = 16;
194 return value;
195 }

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