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