Go to the documentation of this file.
12 #ifndef ECL_SIGSLOTS_LITE_CONNECT_HPP_
13 #define ECL_SIGSLOTS_LITE_CONNECT_HPP_
46 template <
typename Data,
unsigned int Capacity,
typename FunctionClass>
62 template <
typename Data,
unsigned int Capacity>
88 template <
typename Data,
unsigned int Capacity,
typename FunctionClass>
115 template <
typename Data,
unsigned int Capacity>
116 sigslots::Error
connect(Signal<Data, Capacity> &signal,
void (*
function)(Data)) {
118 if ( slot != NULL ) {
140 template <
unsigned int Capacity,
typename FunctionClass>
147 if ( slot != NULL ) {
162 template <
unsigned int Capacity>
163 sigslots::Error
connect(Signal<void, Capacity> &signal,
void (*
function)(
void)) {
165 if ( slot != NULL ) {
sigslots::Error connect(sigslots::SlotBase< Data > &slot)
Connect the signal to the specified slot.
Error handling types and classes for lite sigslots.
Used internally to retrieve info about void member slots.
Simple slots - these are actually all hidden from the user.
ecl::lite::sigslots::Error connect(ecl::lite::Signal< Data, Capacity > &signal, MemberSlot< Data, FunctionClass > &slot)
Internal worker used to connect a signal with a slot.
Specialisation of the signal for data-less sigslots.
virtual sigslots::MemberSlot< Data, FunctionClass > * addSlot(void(FunctionClass::*func)(Data), FunctionClass &instance)=0
Extends the generic ecl error handler with some time specific error strings.
static sigslots::GlobalSlot< Data > * addSlot(void(*func)(Data))
Add a slot.
A slot with member callback function.
Used internally to retrieve info about members lots.
virtual sigslots::MemberSlot< void, FunctionClass > * addSlot(void(FunctionClass::*func)(), FunctionClass &instance)=0
sigslots::Error connect(Signal< Data, Capacity > &signal, void(FunctionClass::*f)(Data), FunctionClass &o)
Convenience method to connect signal with member function.
A slot with member callback function.