Wt
4.0.2
|
A base class for objects whose life-time can be tracked. More...
Public Member Functions | |
observable () noexcept | |
Default constructor. | |
virtual | ~observable () |
Destructor. More... | |
A base class for objects whose life-time can be tracked.
This class provides the ability to be observed by a observing_ptr, which is a smart pointer that is aware of the deletion of this object. It is used by the signal/slot system to automatically disconnect a slot when the receiving object has been deleted, and can wrap itself inside a function that guards against deletion of the object using bindSafe().
|
virtual |
Destructor.
Destruction may result in automatic disconnects from signal connections.