Trackable Class Reference

#include <event.h>

Inheritance diagram for Trackable:

Inheritance graph
List of all members.

Detailed Description

Trackable object allows tracking the object's lifetime by Event subsystem, and thus avoid emitting events from already-destroyed sources.

To enable source object tracking, derive the event source type publically from Trackable,and the rest of the machinery is done automatically by Event subsystem (via compile-time type-checking).

Trackable is also boost::signals::trackable, so connections established by a Trackable object are also disconnected when Trackable object is destroyed, thus providing automatic and safe event handlers removal.

This does not work with smart-pointer types yet.

Definition at line 105 of file event.h.

Public Member Functions

 Trackable ()
 ~Trackable ()
boost::shared_ptr< bool > getValidator () const

Private Attributes

boost::shared_ptr< bool > m_validator

Constructor & Destructor Documentation

Trackable::Trackable  )  [inline]

Definition at line 107 of file event.h.

References m_validator.

Trackable::~Trackable  )  [inline]

Definition at line 108 of file event.h.

References m_validator.

Member Function Documentation

boost::shared_ptr<bool> Trackable::getValidator  )  const [inline]

Definition at line 109 of file event.h.

References m_validator.

Member Data Documentation

boost::shared_ptr<bool> Trackable::m_validator [private]

Definition at line 111 of file event.h.

Referenced by getValidator(), Trackable(), and ~Trackable().

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