Namespaces | Classes | Functions
ecl::lite Namespace Reference

Namespaces

namespace  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.
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.
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.
template<unsigned int Capacity>
sigslots::Error connect (Signal< void, Capacity > &signal, void(*function)(void))
 Convenience method to connect signal with global/static function.
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

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.

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.

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.

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.

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

Definition at line 33 of file utilities.hpp.

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

Definition at line 29 of file utilities.hpp.

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

Definition at line 44 of file utilities.hpp.

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 Wed Aug 26 2015 11:27:15