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::data::header_stream< Tp > Struct Template Reference

#include "timemory/data/stream.hpp"

+ Collaboration diagram for tim::data::header_stream< Tp >:

Public Types

using format_flags = std::ios_base::fmtflags
 

Public Member Functions

 header_stream (format_flags _fmt, int _width, int _prec, bool _center)
 
template<typename StreamT >
StreamT & operator() (StreamT &_os, const Tp &_obj)
 

Public Attributes

bool m_center
 
int m_width
 
int m_precision
 
format_flags m_format
 

Detailed Description

template<typename Tp>
struct tim::data::header_stream< Tp >

Definition at line 778 of file stream.hpp.

Member Typedef Documentation

◆ format_flags

template<typename Tp >
using tim::data::header_stream< Tp >::format_flags = std::ios_base::fmtflags

Definition at line 780 of file stream.hpp.

Constructor & Destructor Documentation

◆ header_stream()

template<typename Tp >
tim::data::header_stream< Tp >::header_stream ( format_flags  _fmt,
int  _width,
int  _prec,
bool  _center 
)
inline

Definition at line 782 of file stream.hpp.

783 : m_center(_center)
784 , m_width(_width)
785 , m_precision(_prec)
786 , m_format(_fmt)
787 {}
format_flags m_format
Definition: stream.hpp:799

Member Function Documentation

◆ operator()()

template<typename Tp >
template<typename StreamT >
StreamT & tim::data::header_stream< Tp >::operator() ( StreamT &  _os,
const Tp &  _obj 
)
inline

Member Data Documentation

◆ m_center

template<typename Tp >
bool tim::data::header_stream< Tp >::m_center

Definition at line 796 of file stream.hpp.

Referenced by tim::data::header_stream< Tp >::operator()().

◆ m_format

template<typename Tp >
format_flags tim::data::header_stream< Tp >::m_format

Definition at line 799 of file stream.hpp.

Referenced by tim::data::header_stream< Tp >::operator()().

◆ m_precision

template<typename Tp >
int tim::data::header_stream< Tp >::m_precision

Definition at line 798 of file stream.hpp.

Referenced by tim::data::header_stream< Tp >::operator()().

◆ m_width

template<typename Tp >
int tim::data::header_stream< Tp >::m_width

Definition at line 797 of file stream.hpp.

Referenced by tim::data::header_stream< Tp >::operator()().


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