Template Function ecl::lite::connect(Signal<Data, Capacity>&, void(FunctionClass::*)(Data), FunctionClass&)

Function Documentation

template<typename Data, unsigned int Capacity, typename FunctionClass>
sigslots::Error ecl::lite::connect(Signal<Data, Capacity> &signal, void (FunctionClass::* f)(Data), 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