|
PLaSK library
|
Implementation of one value provider class which holds value inside (in value field) and operator() returns its held value. More...
#include <plask/provider/providerfor.hpp>
Public Types | |
| typedef ValueType | ProvidedType |
| Type of provided value. | |
Public Types inherited from plask::ProviderFor< PropertyT, SpaceT > | |
| typedef PropertyT | PropertyTag |
| typedef SpaceT | SpaceType |
Public Member Functions | |
| template<typename ... Args> | |
| WithDefaultValue (Args &&... params) | |
| Delegate all constructors to value. | |
| WithDefaultValue & | operator= (const ValueType &v) |
| Set new value. | |
| ProvidedType | operator() (_ExtraParams...) const override |
| Get provided value. | |
Public Member Functions inherited from plask::ProviderFor< PropertyT, SpaceT > | |
| ProviderFor (Args &&... params) | |
| Delegate all constructors to parent class. | |
Public Attributes | |
| ProvidedType | value |
| Provided value. | |
Implementation of one value provider class which holds value inside (in value field) and operator() returns its held value.
It always has a value.
It ignores extra parameters.
Definition at line 668 of file providerfor.hpp.
| typedef ValueType plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::WithDefaultValue::ProvidedType |
Type of provided value.
Definition at line 671 of file providerfor.hpp.
|
inline |
Delegate all constructors to value.
Definition at line 678 of file providerfor.hpp.
|
inlineoverride |
|
inline |
| ProvidedType plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::WithDefaultValue::value |
Provided value.
Definition at line 674 of file providerfor.hpp.