Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
ProtoSignal template specialised for the callback signature and collector. More...
#include <aidasignal.hh>
Inherits Rapicorn::Aida::Lib::CollectorInvocation< Collector, R(Args...)>.
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. |
ProtoSignal template specialised for the callback signature and collector.