PLaSK library
|
Instantiation of this template is abstract base class for provider which provide multiple values (for example one double). More...
#include <plask/provider/provider.hpp>
Public Types | |
typedef ValueT | ProvidedType |
Type of provided value. | |
typedef EnumT | EnumType |
Type of value number. | |
Public Member Functions | |
const char * | name () const override |
virtual ProvidedType | operator() (EnumT num, ArgsT...) const =0 |
Provided value getter. | |
virtual size_t | size () const =0 |
Get number of values. | |
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 = "undefined value" |
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. | |
Instantiation of this template is abstract base class for provider which provide multiple values (for example one double).
ValueT | type of provided value |
ArgsT | type of arguments required by provider (optional) |
Definition at line 479 of file provider.hpp.
Type of value number.
Definition at line 488 of file provider.hpp.
Type of provided value.
Definition at line 485 of file provider.hpp.
|
inlineoverridevirtual |
Reimplemented from plask::Provider.
Reimplemented in plask::ProviderImpl< PropertyT, MULTI_VALUE_PROPERTY, SpaceT, VariadicTemplateTypesHolder< _ExtraParams... > >.
Definition at line 482 of file provider.hpp.
|
pure virtual |
Provided value getter.
|
pure virtual |
Get number of values.
|
staticconstexpr |
Definition at line 481 of file provider.hpp.