Specialisation of the signal for data-less sigslots. More...
#include <signal.hpp>
Public Member Functions | |
unsigned int | capacity () const |
The reserved capacity for this signaller. More... | |
sigslots::Error | connect (sigslots::SlotBase< void > &slot) |
Connect the signal to the specified slot. More... | |
void | emit () const |
Signal slots with the specified data. More... | |
Signal () | |
Initialise the storage. More... | |
unsigned int | stored () const |
The current number of connections stored. More... | |
Private Attributes | |
sigslots::SlotBase< void > * | slots [Capacity] |
Specialisation of the signal for data-less sigslots.
Specialises the signal class for use with void callbacks. In this situation, it is purely a signaller, nothing else.
Capacity | : the number of slot connections to reserve. |
Definition at line 148 of file signal.hpp.
|
inline |
Initialise the storage.
Definition at line 153 of file signal.hpp.
|
inline |
The reserved capacity for this signaller.
Definition at line 188 of file signal.hpp.
|
inline |
Connect the signal to the specified slot.
This will attach the slot (note that it is a permanent attachment) so long as the reserved capacity isn't already fully utilised.
Valid return values:
slot | : the slot to connect. |
Definition at line 173 of file signal.hpp.
|
inline |
Signal slots with the specified data.
Definition at line 208 of file signal.hpp.
|
inline |
The current number of connections stored.
Definition at line 195 of file signal.hpp.
|
private |
Definition at line 219 of file signal.hpp.