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::component::static_properties< Tp, false > Struct Template Reference

#include "timemory/components/properties.hpp"

+ Collaboration diagram for tim::component::static_properties< Tp, false >:

Public Types

using ptype = properties< Tp >
 
using vtype = static_properties< void, false >
 

Static Public Member Functions

static bool matches (int _idx)
 
static bool matches (const std::string &_key)
 
static bool matches (const char *_key)
 

Detailed Description

template<typename Tp>
struct tim::component::static_properties< Tp, false >

Definition at line 160 of file properties.hpp.

Member Typedef Documentation

◆ ptype

Definition at line 162 of file properties.hpp.

◆ vtype

Definition at line 163 of file properties.hpp.

Member Function Documentation

◆ matches() [1/3]

template<typename Tp >
static bool tim::component::static_properties< Tp, false >::matches ( const char *  _key)
inlinestatic

Definition at line 167 of file properties.hpp.

168 {
169 // don't allow checks for placeholder types
171 "static_properties is instantiating a placeholder type");
172
173 return vtype::matches(_key, ptype::enum_string(), ptype::ids());
174 }
static constexpr bool value
Definition: concepts.hpp:198

◆ matches() [2/3]

template<typename Tp >
static bool tim::component::static_properties< Tp, false >::matches ( const std::string &  _key)
inlinestatic

Definition at line 166 of file properties.hpp.

166{ return matches(_key.c_str()); }

References matches().

Referenced by matches().

◆ matches() [3/3]

template<typename Tp >
static bool tim::component::static_properties< Tp, false >::matches ( int  _idx)
inlinestatic

Definition at line 165 of file properties.hpp.

165{ return (_idx == ptype{}()); }

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