This is a critical specialization for mapping string and integers to component types at runtime (should always be specialized alongside tim::component::properties) and it is also critical for performing template metaprogramming "loops" over all the components. E.g.:
More...
#include "timemory/components/properties.hpp"
template<int Idx>
struct tim::component::enumerator< Idx >
This is a critical specialization for mapping string and integers to component types at runtime (should always be specialized alongside tim::component::properties) and it is also critical for performing template metaprogramming "loops" over all the components. E.g.:
- Template Parameters
-
template <size_t Idx>
template <size_t... Idx>
auto init(std::index_sequence<Idx...>)
{
Enumerator_t<Idx>>());
}
{
init(std::make_index_sequence<TIMEMORY_COMPONENTS_END>{});
}
void init(Args &&... args)
provides nothing, used for dummy types in enum
static storage_initializer get()
#define TIMEMORY_FOLD_EXPRESSION(...)
Definition at line 260 of file properties.hpp.
◆ type
◆ value_type
◆ enum_string()
|
inlinestaticconstexprinherited |
Definition at line 220 of file properties.hpp.
220{
return "TIMEMORY_COMPONENTS_END"; }
◆ id()
|
inlinestaticconstexprinherited |
◆ ids()
◆ operator TIMEMORY_COMPONENT()
◆ operator()()
◆ operator==() [1/3]
◆ operator==() [2/3]
◆ operator==() [3/3]
◆ serialize()
◆ specialized()
|
inlinestaticconstexprinherited |
◆ value
The documentation for this struct was generated from the following file: