PLaSK library
|
Partial specialization which implements abstract provider class which provides a single value, typically one double. More...
#include <plask/provider/providerfor.hpp>
Classes | |
struct | WithDefaultValue |
Implementation of one value provider class which holds value inside (in value field) and operator() returns its held value. More... | |
struct | WithValue |
Implementation of one value provider class which holds value inside (in value field) and operator() return its held value. More... | |
Public Types | |
typedef PropertyT | PropertyTag |
typedef SpaceT | SpaceType |
typedef PropertyAt< PropertyT, SpaceT >::ValueType | ValueType |
typedef SingleValueProvider< ValueType >::ProvidedType | ProvidedType |
Type of provided value. | |
typedef PolymorphicDelegateProvider< ProviderFor< PropertyT, SpaceT >, ProvidedType(_ExtraParams...)> | Delegate |
Implementation of one value provider class which delegates all operator() calls to external functor. | |
typedef WithValue | ConstProviderType |
Used by receivers as const value provider, see Receiver::setConstValue. | |
Public Types inherited from plask::SingleValueProvider< PropertyAt< PropertyT, SpaceT >::ValueType, _ExtraParams... > | |
typedef PropertyAt< PropertyT, SpaceT >::ValueType | ProvidedType |
Type of provided value. | |
Public Member Functions | |
const char * | name () const override |
Public Member Functions inherited from plask::SingleValueProvider< PropertyAt< PropertyT, SpaceT >::ValueType, _ExtraParams... > | |
const char * | name () const override |
virtual ProvidedType | operator() (ArgsT...) const=0 |
Provided value getter. | |
Public Member Functions inherited from plask::Provider | |
Provider & | operator= (const Provider &)=delete |
Provider (const Provider &)=delete | |
Provider ()=default | |
virtual | ~Provider () |
Call onDisconnect for all listeners in listeners set. | |
void | fireChanged () |
Call onChange for all listeners. | |
Static Public Attributes | |
static constexpr const char * | NAME = PropertyT::NAME |
Static Public Attributes inherited from plask::SingleValueProvider< PropertyAt< PropertyT, SpaceT >::ValueType, _ExtraParams... > | |
static constexpr const char * | NAME |
Static Public Attributes inherited from plask::Provider | |
static constexpr const char * | NAME = "undefined" |
Additional Inherited Members | |
Public Attributes inherited from plask::Provider | |
boost::signals2::signal< void(Provider &, bool)> | changed |
Signal called when providers value has been changed or provider is being deleted. | |
Partial specialization which implements abstract provider class which provides a single value, typically one double.
PropertyT | |
ValueT | type of provided value |
SpaceT | ignored |
Definition at line 646 of file providerfor.hpp.
typedef WithValue plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::ConstProviderType |
Used by receivers as const value provider, see Receiver::setConstValue.
Definition at line 762 of file providerfor.hpp.
typedef PolymorphicDelegateProvider<ProviderFor<PropertyT, SpaceT>, ProvidedType(_ExtraParams...)> plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::Delegate |
Implementation of one value provider class which delegates all operator() calls to external functor.
Definition at line 759 of file providerfor.hpp.
typedef PropertyT plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::PropertyTag |
Definition at line 648 of file providerfor.hpp.
typedef SingleValueProvider<ValueType>::ProvidedType plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::ProvidedType |
Type of provided value.
Definition at line 660 of file providerfor.hpp.
typedef SpaceT plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::SpaceType |
Definition at line 649 of file providerfor.hpp.
typedef PropertyAt<PropertyT,SpaceT>::ValueType plask::ProviderImpl< PropertyT, SINGLE_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >::ValueType |
Definition at line 657 of file providerfor.hpp.
|
inlineoverridevirtual |
Reimplemented from plask::Provider.
Definition at line 652 of file providerfor.hpp.
|
staticconstexpr |
Definition at line 651 of file providerfor.hpp.