frepple::utils::FunctorInstance< T, U > Class Template Reference

This class represents an object subscribing to a signal. More...

#include <utils.h>

Inheritance diagram for frepple::utils::FunctorInstance< T, U >:

List of all members.

Public Member Functions

 FunctorInstance (U *u)
- Public Member Functions inherited from frepple::utils::Functor
virtual ~Functor ()

Static Public Member Functions

static void connect (U *u, const Signal a)
static void disconnect (U *u, const Signal a)

Detailed Description

template<class T, class U>
class frepple::utils::FunctorInstance< T, U >

This class represents an object subscribing to a signal.

When the signal callback is triggered the method callback() on the instance object will be called.

Definition at line 1323 of file utils.h.


Constructor & Destructor Documentation

template<class T, class U>
frepple::utils::FunctorInstance< T, U >::FunctorInstance ( U *  u)
inline

Constructor.

Definition at line 1358 of file utils.h.


Member Function Documentation

template<class T, class U>
static void frepple::utils::FunctorInstance< T, U >::connect ( U *  u,
const Signal  a 
)
inlinestatic

Connect a new subscriber to a signal.
It is the users' responsibility to call the disconnect method when the subscriber is being deleted. Otherwise the application will crash.

Definition at line 1331 of file utils.h.

template<class T, class U>
static void frepple::utils::FunctorInstance< T, U >::disconnect ( U *  u,
const Signal  a 
)
inlinestatic

Disconnect from a signal.

Definition at line 1335 of file utils.h.


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