This is the member slot interface, inheritable by classes. More...
#include <managers.hpp>
Protected Member Functions | |
MemberSlots () | |
Private Member Functions | |
sigslots::MemberSlot< Data, FunctionClass > * | addSlot (void(FunctionClass::*func)(Data), FunctionClass &instance) |
Add a slot. More... | |
unsigned int | capacity () const |
The number of slots that can be attached to member functions. More... | |
unsigned int | stored () const |
The number of slots stored. More... | |
Private Attributes | |
unsigned int | size |
sigslots::MemberSlot< Data, FunctionClass > | slots [Capacity] |
Friends | |
template<typename Data_ , unsigned int Capacity_, typename FunctionClass_ > | |
sigslots::Error | connect (Signal< Data_, Capacity_ > &signal, void(FunctionClass_::*f)(Data_), FunctionClass_ &o) |
template<typename Data_ , typename FunctionClass_ > | |
unsigned int | member_slots_capacity (const FunctionClass_ &object) |
template<typename Data_ , typename FunctionClass_ > | |
unsigned int | member_slots_stored (const FunctionClass_ &object) |
Additional Inherited Members |
This is the member slot interface, inheritable by classes.
To enable slots for your class, simply inherit this interface.
Data | : the footprint for the member function to slot. |
FunctionClass | : the class it will provide slots for. |
Capacity | : the number of functions from FunctionClass you'll slot. |
Definition at line 91 of file managers.hpp.
|
inlineprotected |
Definition at line 110 of file managers.hpp.
|
inlineprivatevirtual |
Add a slot.
This is used 'under the hood' by the connectors.
func | : the function to slot. |
instance | : the class instance associated with the function. |
Implements ecl::lite::sigslots::MemberSlotsBase< Data, FunctionClass >.
Definition at line 135 of file managers.hpp.
|
inlineprivatevirtual |
The number of slots that can be attached to member functions.
Reimplemented from ecl::lite::sigslots::MemberSlotsBase< Data, FunctionClass >.
Definition at line 124 of file managers.hpp.
|
inlineprivatevirtual |
The number of slots stored.
Reimplemented from ecl::lite::sigslots::MemberSlotsBase< Data, FunctionClass >.
Definition at line 118 of file managers.hpp.
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 150 of file managers.hpp.
|
private |
Definition at line 151 of file managers.hpp.