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