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

This class generates the class name for a component according to the standard Python naming convention. More...

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

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

Public Types

using type = Tp
 
using base_type = python_class_name< void >
 

Public Member Functions

std::string operator() () const
 

Detailed Description

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

This class generates the class name for a component according to the standard Python naming convention.

Definition at line 49 of file python_class_name.hpp.

Member Typedef Documentation

◆ base_type

Definition at line 66 of file python_class_name.hpp.

◆ type

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

Definition at line 65 of file python_class_name.hpp.

Member Function Documentation

◆ operator()()

template<typename Tp >
std::string tim::operation::python_class_name< Tp >::operator() ( ) const
inline

Definition at line 69 of file python_class_name.hpp.

70 {
71 using properties_t = component::properties<Tp>;
72 static_assert(properties_t::specialized(),
73 "Error! Cannot get python class name if the component properties "
74 "have not been specialized");
75 return this->base_type::operator()(properties_t::enum_string());
76 }
typename enumerator< Idx >::type properties_t
Definition: properties.hpp:276
std::string operator()(std::string id) const

References tim::operation::python_class_name< void >::operator()().


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