So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
|
Base class for Signal of different arities. More...
#include <Signal.hpp>
Public Member Functions | |
void | disconnectAll () |
Disconnects all listeners. | |
void | connect (typename Traits::Function::Type func) |
Connects the signal to a free function. More... | |
template<typename T > | |
void | connect (T &object, typename Traits::template Method< T >::Type member_func) |
Connects the signal to a member function. More... | |
void | connect (const Derived &other) |
Connects the signal to another Signal. More... | |
Protected Types | |
typedef std::list< typename Traits::Callable * > | Callables |
Protected Attributes | |
Callables | m_callees |
Base class for Signal of different arities.
void bogus::SignalBase< Derived >::connect | ( | typename Traits::Function::Type | func | ) |
Connects the signal to a free function.
Its signature should be func( Arg 1, ..., Arg n ) ;
void bogus::SignalBase< Derived >::connect | ( | T & | object, |
typename Traits::template Method< T >::Type | member_func | ||
) |
Connects the signal to a member function.
Its signature should be T::member_func( Arg 1, ..., Arg n ) ;
void bogus::SignalBase< Derived >::connect | ( | const Derived & | other | ) |
Connects the signal to another Signal.
It should have the same template parameters