Classes | Enumerations | Functions
ecl::lite::sigslots Namespace Reference

Classes

class  Error
 Extends the generic ecl error handler with some time specific error strings. More...
 
class  GlobalSlot
 A slot with global/static callback function. More...
 
class  GlobalSlot< void >
 A slot with global/static callback function. More...
 
class  MemberSlot
 A slot with member callback function. More...
 
class  MemberSlot< void, FunctionClass >
 A slot with member callback function. More...
 
class  MemberSlotsBase
 Used internally to retrieve info about members lots. More...
 
class  MemberSlotsBase< void, FunctionClass >
 Used internally to retrieve info about void member slots. More...
 
class  SlotBase
 Parent slot class with the common, publicly exposed interface. More...
 
class  SlotBase< void >
 Parent slot class with the common, publicly exposed interface. More...
 

Enumerations

enum  ErrorFlag { NoError = 0, UnknownError = -1, OutOfResourcesError = -21 }
 Error flags for lite sigslots. More...
 

Functions

template<typename Data , unsigned int Capacity, typename FunctionClass >
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. More...
 
template<typename Data , unsigned int Capacity>
ecl::lite::sigslots::Error connect (ecl::lite::Signal< Data, Capacity > &signal, GlobalSlot< Data > &slot)
 Internal worker used to connect a signal with a slot. More...
 

Enumeration Type Documentation

Error flags for lite sigslots.

This is a subset of the ecl_errors class, reproduced here for semi-compatibility. Try and keep these matched with the ErrorFlag enums in ecl_errors for consistency.

Enumerator
NoError 

No error (often a meaningful error state in itself).

UnknownError 

Unknown error type.

OutOfResourcesError 

Out of resources, cannot proceed.

Definition at line 30 of file errors.hpp.

Function Documentation

template<typename Data , unsigned int Capacity, typename FunctionClass >
ecl::lite::sigslots::Error ecl::lite::sigslots::connect ( ecl::lite::Signal< Data, Capacity > &  signal,
MemberSlot< Data, FunctionClass > &  slot 
)

Internal worker used to connect a signal with a slot.

Valid return values:

  • NoError
  • OutOfResourcesError : when the capacity of the signal is exceeded.
Parameters
signal: the signal for connection.
slot: the member slot for connection

Definition at line 47 of file connect.hpp.

template<typename Data , unsigned int Capacity>
ecl::lite::sigslots::Error ecl::lite::sigslots::connect ( ecl::lite::Signal< Data, Capacity > &  signal,
GlobalSlot< Data > &  slot 
)

Internal worker used to connect a signal with a slot.

Valid return values:

  • NoError
  • OutOfResourcesError : when the capacity of the signal is exceeded.
Parameters
signal: the signal for connection.
slot: the global slot for connection

Definition at line 63 of file connect.hpp.



ecl_sigslots_lite
Author(s): Daniel Stonier
autogenerated on Fri Jun 7 2019 21:52:46