Namespaces | Classes | Functions
ecl::lite Namespace Reference

Namespaces

 sigslots
 

Classes

class  GlobalSlots
 This is the global slot interface. More...
 
class  GlobalSlots< void, Dummy >
 Specialisation for void global slots management. More...
 
class  MemberSlots
 This is the member slot interface, inheritable by classes. More...
 
class  MemberSlots< void, FunctionClass, Capacity >
 Specialisation for void member slots management. More...
 
class  Signal
 A simple signal class. More...
 
class  Signal< void, Capacity >
 Specialisation of the signal for data-less sigslots. More...
 

Functions

template<typename Data , unsigned int Capacity, typename FunctionClass >
sigslots::Error connect (Signal< Data, Capacity > &signal, void(FunctionClass::*f)(Data), FunctionClass &o)
 Convenience method to connect signal with member function. More...
 
template<typename Data , unsigned int Capacity>
sigslots::Error connect (Signal< Data, Capacity > &signal, void(*function)(Data))
 Convenience method to connect signal with global/static function. More...
 
template<unsigned int Capacity, typename FunctionClass >
sigslots::Error connect (Signal< void, Capacity > &signal, void(FunctionClass::*function)(void), FunctionClass &o)
 Convenience method to connect signal with member function. More...
 
template<unsigned int Capacity>
sigslots::Error connect (Signal< void, Capacity > &signal, void(*function)(void))
 Convenience method to connect signal with global/static function. More...
 
template<typename Data >
unsigned int global_slots_capacity ()
 
template<typename Data >
unsigned int global_slots_stored ()
 
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)
 

Function Documentation

◆ connect() [1/4]

template<typename Data , unsigned int Capacity, typename FunctionClass >
sigslots::Error ecl::lite::connect ( Signal< Data, Capacity > &  signal,
void(FunctionClass::*)(Data)  f,
FunctionClass &  o 
)

Convenience method to connect signal with member function.

This simply passes on the work to Signal's connect method.

Valid return values:

  • NoError
  • OutOfResourcesError : when the capacity of the member slots or the signal is exceeded.
Parameters
signal: the signal for connection.
f: the member function to slot.
o: the object associated with the member function.
Returns
Error : the sigslots error

Definition at line 89 of file connect.hpp.

◆ connect() [2/4]

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

Convenience method to connect signal with global/static function.

This simply passes on the work to Signal's connect method.

Valid return values:

  • NoError
  • OutOfResourcesError : when the capacity of the global slots manager or the signal is exceeded.
Parameters
signal: the signal for connection.
function: the global/static function to slot.
Returns
Error : the sigslots error

Definition at line 116 of file connect.hpp.

◆ connect() [3/4]

template<unsigned int Capacity, typename FunctionClass >
sigslots::Error ecl::lite::connect ( Signal< void, Capacity > &  signal,
void(FunctionClass::*)(void)  function,
FunctionClass &  o 
)

Convenience method to connect signal with member function.

This simply passes on the work to Signal's connect method.

Parameters
signal: the signal for connection.
function: the member function to slot.
o: the object associated with the member function.
Returns
Error : the sigslots error

Definition at line 141 of file connect.hpp.

◆ connect() [4/4]

template<unsigned int Capacity>
sigslots::Error ecl::lite::connect ( Signal< void, Capacity > &  signal,
void(*)(void)  function 
)

Convenience method to connect signal with global/static function.

This simply passes on the work to Signal's connect method.

Parameters
signal: the signal for connection.
function: the global/static function to slot.
Returns
Error : the sigslots error

Definition at line 163 of file connect.hpp.

◆ global_slots_capacity()

template<typename Data >
unsigned int ecl::lite::global_slots_capacity ( )

Definition at line 33 of file utilities.hpp.

◆ global_slots_stored()

template<typename Data >
unsigned int ecl::lite::global_slots_stored ( )

Definition at line 29 of file utilities.hpp.

◆ member_slots_capacity()

template<typename Data , typename FunctionClass >
unsigned int ecl::lite::member_slots_capacity ( const FunctionClass &  object)

Definition at line 44 of file utilities.hpp.

◆ member_slots_stored()

template<typename Data , typename FunctionClass >
unsigned int ecl::lite::member_slots_stored ( const FunctionClass &  object)

Definition at line 38 of file utilities.hpp.



ecl_sigslots_lite
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:12