Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Types | Protected Member Functions
Rapicorn::Aida::Lib::ProtoSignal< R(Args...), Collector > Class Template Reference

ProtoSignal template specialised for the callback signature and collector. More...

#include <aidasignal.hh>

Inherits Rapicorn::Aida::Lib::CollectorInvocation< Collector, R(Args...)>.

List of all members.

Public Member Functions

size_t connect (const CbFunction &cb)
 Operator to add a new function or lambda as signal handler, returns a handler connection ID.
bool disconnect (size_t connection)
 Operator to remove a signal handler through its connection ID, returns if a handler was removed.
CollectorResult emit (Args...args)
 Emit a signal, i.e. invoke all its callbacks and collect return types with the Collector.

Protected Types

typedef std::function< R(Args...)> CbFunction
typedef CbFunction::result_type Result
typedef Collector::CollectorResult CollectorResult
typedef HandlerLink< CbFunction > SignalLink

Protected Member Functions

 ProtoSignal (const CbFunction &method)
 ProtoSignal constructor, connects default callback if non-NULL.
 ~ProtoSignal ()
 ProtoSignal destructor releases all resources associated with this signal.

Detailed Description

template<class Collector, class R, class... Args>
class Rapicorn::Aida::Lib::ProtoSignal< R(Args...), Collector >

ProtoSignal template specialised for the callback signature and collector.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines