PLaSK library
|
Instantiation of this template is abstract base class for provider which provide one value (for example one double). More...
#include <plask/provider/provider.hpp>
Public Types | |
typedef ValueT | ProvidedType |
Type of provided value. | |
Public Member Functions | |
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 = "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 one value (for example one double).
ValueT | type of provided value |
ArgsT | type of arguments required by provider (optional) |
Definition at line 457 of file provider.hpp.
typedef ValueT plask::SingleValueProvider< ValueT, ArgsT >::ProvidedType |
Type of provided value.
Definition at line 463 of file provider.hpp.
|
inlineoverridevirtual |
Reimplemented from plask::Provider.
Definition at line 460 of file provider.hpp.
|
pure virtual |
Provided value getter.
|
staticconstexpr |
Definition at line 459 of file provider.hpp.