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

Provides a static get() function which return a shared pointer to an instance of the given archive format for output. Can also provide static functions for any global configuration options for the archive format. For example, the (pretty) JSON output archive supports specification of the precision, indentation length, and the indentation character. More...

#include "timemory/mpl/policy.hpp"

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

Public Types

using type = Archive
 
using pointer = std::shared_ptr< type >
 

Static Public Member Functions

static pointer get (std::ostream &os)
 

Detailed Description

template<typename Archive, typename Api>
struct tim::policy::output_archive< Archive, Api >

Provides a static get() function which return a shared pointer to an instance of the given archive format for output. Can also provide static functions for any global configuration options for the archive format. For example, the (pretty) JSON output archive supports specification of the precision, indentation length, and the indentation character.

Definition at line 135 of file policy.hpp.

Member Typedef Documentation

◆ pointer

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

Definition at line 138 of file policy.hpp.

◆ type

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

Definition at line 137 of file policy.hpp.

Member Function Documentation

◆ get()

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

Definition at line 140 of file policy.hpp.

140{ return std::make_shared<type>(os); }
const std::string std::ostream * os

References tim::os.


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