Specialisation for void global slots management. More...
#include <managers.hpp>
Static Public Attributes | |
static const unsigned int | capacity |
Number of global void functions that can be slotted. | |
Static Private Member Functions | |
static sigslots::GlobalSlot < void > * | addSlot (void(*func)(void)) |
Add a slot. | |
static unsigned int | stored (const bool increment=false) |
Number of slots currently stored. | |
Friends | |
template<unsigned int Capacity_> | |
sigslots::Error | connect (Signal< void, Capacity_ > &signal, void(*function)(void)) |
template<typename Data > | |
unsigned int | global_slots_stored () |
Specialisation for void global slots management.
Dummy | : dummy argument to enable capacity to be a const expr for array bounds |
Definition at line 325 of file managers.hpp.
static sigslots::GlobalSlot<void>* ecl::lite::GlobalSlots< void, Dummy >::addSlot | ( | void(*)(void) | func | ) | [inline, static, private] |
Add a slot.
This is used 'under the hood' by the connectors.
func | : the function to slot. |
Definition at line 366 of file managers.hpp.
static unsigned int ecl::lite::GlobalSlots< void, Dummy >::stored | ( | const bool | increment = false | ) | [inline, static, private] |
Number of slots currently stored.
This is used for two purposes, 1) for recall and 2) to increment since it holds a static variable internally. This is triggered by the boolean argument which has a default value that can be hidden when doing 1).
increment | : increment the storage value (called from addSlot) |
Definition at line 352 of file managers.hpp.
sigslots::Error connect | ( | Signal< void, Capacity_ > & | signal, |
void(*)(void) | function | ||
) | [friend] |
Definition at line 29 of file utilities.hpp.
const unsigned int ecl::lite::GlobalSlots< void, Dummy >::capacity [static] |
Number of global void functions that can be slotted.
Definition at line 327 of file managers.hpp.