PLaSK library
|
Helper class which makes it easier to define property tags class. More...
#include <plask/provider/providerfor.hpp>
Public Types | |
typedef _ValueType2D | ValueType2D |
Type of provided value in 2D space. | |
typedef _ValueType3D | ValueType3D |
Type of provided value in 3D space. | |
typedef VariadicTemplateTypesHolder< _ExtraParams... > | ExtraParams |
Extra parameters passed as arguments to provider to get value. | |
Static Public Member Functions | |
static ValueType2D | getDefaultValue2D () |
Return default value of the property (usually zero) in 2D space. | |
static ValueType3D | getDefaultValue3D () |
Return default value of the property (usually zero) in 3D space. | |
Static Public Attributes | |
static const PropertyType | propertyType = _propertyType |
Type of property. | |
static constexpr const char * | NAME = PropertyTypeToProviderName<_propertyType>::value |
Name of the property. | |
static constexpr bool | hasUniqueValueType = false |
true only if property use same value type in 2D and 3D space | |
Helper class which makes it easier to define property tags class.
Property tags class are used for ProviderFor and ReceiverFor templates instantiations.
Properties tag class can be subclass of this, but never should be typedefs to this (tag class for each property must by separate class - always use different types for different properties).
_propertyType | type of property |
_ValueType2D | type of value (or part of this type) which will be provided in 2D space |
_ValueType3D | type of value (or part of this type) which will be provided in 3D space |
_ExtraParams | type of extra parameters passed to provider |
Definition at line 80 of file providerfor.hpp.
typedef VariadicTemplateTypesHolder<_ExtraParams...> plask::Property< _propertyType, _ValueType2D, _ValueType3D, _ExtraParams >::ExtraParams |
Extra parameters passed as arguments to provider to get value.
Definition at line 100 of file providerfor.hpp.
typedef _ValueType2D plask::Property< _propertyType, _ValueType2D, _ValueType3D, _ExtraParams >::ValueType2D |
Type of provided value in 2D space.
Definition at line 85 of file providerfor.hpp.
typedef _ValueType3D plask::Property< _propertyType, _ValueType2D, _ValueType3D, _ExtraParams >::ValueType3D |
Type of provided value in 3D space.
Definition at line 88 of file providerfor.hpp.
|
inlinestatic |
Return default value of the property (usually zero) in 2D space.
Definition at line 94 of file providerfor.hpp.
|
inlinestatic |
Return default value of the property (usually zero) in 3D space.
Definition at line 97 of file providerfor.hpp.
|
staticconstexpr |
true
only if property use same value type in 2D and 3D space
Definition at line 103 of file providerfor.hpp.
|
staticconstexpr |
Name of the property.
Definition at line 91 of file providerfor.hpp.
|
static |
Type of property.
Definition at line 82 of file providerfor.hpp.