So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
bogus::SignalBase< Derived > Class Template Reference

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
 

Detailed Description

template<typename Derived>
class bogus::SignalBase< Derived >

Base class for Signal of different arities.

Member Function Documentation

template<typename Derived >
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 ) ;

template<typename Derived >
template<typename T >
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 ) ;

template<typename Derived>
void bogus::SignalBase< Derived >::connect ( const Derived &  other)

Connects the signal to another Signal.

It should have the same template parameters


The documentation for this class was generated from the following file: