Wt  4.0.2
Public Member Functions | List of all members
Wt::Core::observable Class Reference

A base class for objects whose life-time can be tracked. More...

Inheritance diagram for Wt::Core::observable:
Inheritance graph
[legend]

Public Member Functions

 observable () noexcept
 Default constructor.
 
virtual ~observable ()
 Destructor. More...
 

Detailed Description

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().

See also
Signal

Constructor & Destructor Documentation

Wt::Core::observable::~observable ( )
virtual

Destructor.

Destruction may result in automatic disconnects from signal connections.


Generated on Fri Nov 24 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11