]> git.saurik.com Git - wxWidgets.git/blob - interface/tracker.h
Mention wxDataViewTreeCtrl in wxTreeCtrl
[wxWidgets.git] / interface / tracker.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tracker.h
3 // Purpose: interface of wxTrackable
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 @class wxTrackable
11 @wxheader{tracker.h}
12
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.
18
19 @code
20 class MyClass: public Foo, public wxTrackable
21 {
22 // whatever
23 }
24
25 typedef wxWeakRef<MyClass> MyClassRef;
26 @endcode
27
28 @library{wxbase}
29 @category{smartpointers}
30 */
31 class wxTrackable
32 {
33 public:
34
35 };
36