So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
|
Signal class, to which an arbitrary number of listeners can be connected. More...
#include <Signal.hpp>
Public Member Functions | |
void | trigger (Arg1 arg1, Arg2 arg2, Arg3 arg3) const |
Triggers the signal. | |
void | disconnectAll () |
Disconnects all listeners. | |
void | connect (typename Traits::Function::Type func) |
Connects the signal to a free function. More... | |
void | connect (T &object, typename Traits::template Method< T >::Type member_func) |
Connects the signal to a member function. More... | |
void | connect (const Signal< Arg1, Arg2, Arg3 > &other) |
Connects the signal to another Signal. More... | |
Protected Types | |
typedef std::list< typename Traits::Callable * > | Callables |
Protected Attributes | |
Callables | m_callees |
Signal class, to which an arbitrary number of listeners can be connected.
Each time the Signal::trigger() method is called with arguments ( Arg 1, ..., Arg n ), the listener functions are called with those same arguments. The number and types of arguments are determined by the template parameters of the Signal class.
At the moment, only signals with up to 3 parameters are supported.
|
inherited |
Connects the signal to a free function.
Its signature should be func( Arg 1, ..., Arg n ) ;
|
inherited |
Connects the signal to a member function.
Its signature should be T::member_func( Arg 1, ..., Arg n ) ;
|
inherited |
Connects the signal to another Signal.
It should have the same template parameters