msignals::target Class Reference

#include <msigCommon.h>

Inherited by msignals::base_signal::Impl, and msignals::managed_target.

List of all members.


Detailed Description

A small mixin class to help type-safe connection removal. If you want to manually remove all connections to particular object (it's needed before destroying it to avoid dangling connections), you can derive from this class. It allows to use the type-safe version of disconnect operation.

Inheriting from this class should not cause runtime overhead.

Warning: inheriting from this class implies non-copyability, since the constructor and assignment operator are private. However, it's not a good idea to pass signal handlers by value, as the object's address may change or become ambiguous. Tracking all the handler instances would be possible, but also would impose serious run-time performance overhead and code bloat. Also it doesn't seem to be really useful in typical applications.


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

Generated on Tue Apr 22 21:55:23 2008 for msignals by  doxygen 1.5.5