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

#include "timemory/mpl/policy.hpp"

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

Public Types

using type = cereal::PrettyJSONOutputArchive
 
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::PrettyJSONOutputArchive, Api >

Definition at line 146 of file policy.hpp.

Member Typedef Documentation

◆ indent_type

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

Definition at line 151 of file policy.hpp.

◆ option_type

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

Definition at line 150 of file policy.hpp.

◆ pointer

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

Definition at line 149 of file policy.hpp.

◆ type

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

Definition at line 148 of file policy.hpp.

Member Function Documentation

◆ get()

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

Definition at line 171 of file policy.hpp.

172 {
173 // Option args: precision, spacing, indent size
175 return std::make_shared<type>(os, opts);
176 }
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::PrettyJSONOutputArchive, Api >::indent_char ( )
inlinestatic

Definition at line 165 of file policy.hpp.

166 {
167 static indent_type value = indent_type::space;
168 return value;
169 }

◆ indent_length()

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

Definition at line 159 of file policy.hpp.

160 {
161 static unsigned int value = 1;
162 return value;
163 }

◆ precision()

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

Definition at line 153 of file policy.hpp.

154 {
155 static unsigned int value = 16;
156 return value;
157 }

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