14 #ifndef ECL_SIGSLOTS_LITE_SIGNAL_HPP_ 15 #define ECL_SIGSLOTS_LITE_SIGNAL_HPP_ 62 template <
typename Data=
void,
unsigned int Capacity = 1>
69 for (
unsigned int i = 0; i < Capacity; ++i) {
89 for (
unsigned int i = 0; i < Capacity; ++i ) {
90 if (
slots[i] == NULL ) {
111 for (i = 0; i < Capacity; ++i ) {
112 if (
slots[i] == NULL ) {
126 for (
unsigned int i = 0; i < Capacity; ++i ) {
127 if (
slots[i] == NULL ) {
130 slots[i]->execute(data);
147 template <
unsigned int Capacity>
154 for (
unsigned int i = 0; i < Capacity; ++i) {
174 for (
unsigned int i = 0; i < Capacity; ++i ) {
175 if (
slots[i] == NULL ) {
197 for (i = 0; i < Capacity; ++i ) {
198 if (
slots[i] == NULL ) {
209 for (
unsigned int i = 0; i < Capacity; ++i ) {
210 if (
slots[i] == NULL ) {
Error handling types and classes for lite sigslots.
sigslots::Error connect(sigslots::SlotBase< Data > &slot)
Connect the signal to the specified slot.
Signal()
Initialise the storage.
void emit(Data data) const
Signal slots with the specified data.
Extends the generic ecl error handler with some time specific error strings.
unsigned int capacity() const
The reserved capacity for this signaller.
sigslots::SlotBase< Data > * slots[Capacity]
sigslots::Error connect(sigslots::SlotBase< void > &slot)
Connect the signal to the specified slot.
Signal()
Initialise the storage.
Parent slot class with the common, publicly exposed interface.
Parent slot class with the common, publicly exposed interface.
unsigned int stored() const
The current number of connections stored.
void emit() const
Signal slots with the specified data.
unsigned int capacity() const
The reserved capacity for this signaller.
unsigned int stored() const
The current number of connections stored.
Simple slots - these are actually all hidden from the user.