Go to the source code of this file.
#define DEFINE_PARAMETER_TYPE |
( |
|
ParameterClassType, |
|
|
|
ParameterId, |
|
|
|
ParameterConfigType |
|
) |
| |
Value:template<> \
struct ParameterToId< ParameterClassType > \
{\
public:\
using ConfigType = ParameterConfigType; \
};\
template<> \
struct IdToParameter< ParameterId > \
{ \
public: \
using Type = ParameterClassType; \
}; \
template<> \
struct ParameterToConfigType< ParameterClassType > \
{\
public:\
using ConfigType = ParameterConfigType;\
}; \
}
uint64_t ParameterType
Definition: parameter_type.hpp:13
Definition: options.cpp:10
Macro to register compile-time translations between the parameter class type, the corresponding type id and the type of the configuration data type.
- Parameters
-
ParameterClassType | The type of the parameter class |
ParameterId | Numeric parameter id (hash value) |
ParameterConfigType | The clann type of the configuration type. |
- Note
- The translation is compile-time, so it must be visible (included) at the point of usage.
-
This registration is independent of the run-time parameter lookup and instantiation performed in ParameterFactory.