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::operation::set_prefix< Tp > Struct Template Reference

Call the set_prefix member function. These instantiations are always inlined because of the use of string_view. Without inlining, you will get undefined symbols in C++14 code when timemory was compiled with C++17. More...

#include "timemory/operations/types/set.hpp"

+ Collaboration diagram for tim::operation::set_prefix< Tp >:

Public Types

using type = Tp
 
using string_t = string_view_t
 

Public Member Functions

 set_prefix (type &obj, const string_t &_prefix)
 
 set_prefix (type &obj, hash_value_t _nhash, const string_t &_prefix)
 
auto operator() (type &obj, const string_t &_prefix) const
 
auto operator() (type &obj, hash_value_t _nhash) const
 

Detailed Description

template<typename Tp>
struct tim::operation::set_prefix< Tp >

Call the set_prefix member function. These instantiations are always inlined because of the use of string_view. Without inlining, you will get undefined symbols in C++14 code when timemory was compiled with C++17.

Template Parameters
TpComponent type

Definition at line 58 of file set.hpp.

Member Typedef Documentation

◆ string_t

Definition at line 61 of file set.hpp.

◆ type

template<typename Tp >
using tim::operation::set_prefix< Tp >::type = Tp

Definition at line 60 of file set.hpp.

Constructor & Destructor Documentation

◆ set_prefix() [1/2]

template<typename Tp >
tim::operation::set_prefix< Tp >::set_prefix ( type obj,
const string_t _prefix 
)

Definition at line 124 of file set.hpp.

125{
126 sfinae_str(obj, 0, 0, 0, _prefix);
127}
char const std::string & _prefix
Definition: config.cpp:55

References tim::_prefix.

◆ set_prefix() [2/2]

template<typename Tp >
tim::operation::set_prefix< Tp >::set_prefix ( type obj,
hash_value_t  _nhash,
const string_t _prefix 
)

Definition at line 132 of file set.hpp.

133{
134 sfinae_hash(obj, 0, _nhash);
135 sfinae_str(obj, 0, 0, 0, _prefix);
136}

References tim::_prefix.

Member Function Documentation

◆ operator()() [1/2]

template<typename Tp >
auto tim::operation::set_prefix< Tp >::operator() ( type obj,
const string_t _prefix 
) const
inline

Definition at line 68 of file set.hpp.

69 {
70 return sfinae_str(obj, 0, 0, 0, _prefix);
71 }

References tim::_prefix.

◆ operator()() [2/2]

template<typename Tp >
auto tim::operation::set_prefix< Tp >::operator() ( type obj,
hash_value_t  _nhash 
) const
inline

Definition at line 73 of file set.hpp.

74 {
75 return sfinae_hash(obj, 0, _nhash);
76 }

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