]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/tracker.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxTrackable
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 Add-on base class for a trackable object. This class maintains an internal
12 linked list of classes of type wxTrackerNode and calls OnObjectDestroy() on
13 them if this object is destroyed. The most common usage is by using the
14 wxWeakRef<T> class template which automates this. This class has no public
15 API. Its only use is by deriving another class from it to make it trackable.
18 class MyClass: public Foo, public wxTrackable
23 typedef wxWeakRef<MyClass> MyClassRef;
27 @category{smartpointers}