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 >:
frepple::utils::Functor frepple::utils::NonCopyable

List of all members.

Public Member Functions

 FunctorInstance (U *u)

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 1365 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 1400 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 
) [inline, static]

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 1373 of file utils.h.

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

Disconnect from a signal.

Definition at line 1377 of file utils.h.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208