]>
Commit | Line | Data |
---|---|---|
cc6ceca7 | 1 | \section{\class{wxTrackable}}\label{wxtrackable} |
a6acecec RR |
2 | |
3 | Add-on base class for a trackable object. This class maintains | |
4 | an internal linked list of classes of type wxTrackerNode and | |
5 | calls OnObjectDestroy() on them if this object is destroyed. | |
6 | The most common usage is by using the \helpref{wxWeakRef<T>}{wxweakref} | |
7 | class template which automates this. This class has no public | |
8 | API. Its only use is by deriving another class from it to | |
9 | make it trackable. | |
10 | ||
11 | \begin{verbatim} | |
cc6ceca7 | 12 | class MyClass: public Foo, public wxTrackable |
a6acecec RR |
13 | { |
14 | // whatever | |
15 | } | |
16 | ||
17 | typedef wxWeakRef<MyClass> MyClassRef; | |
18 | \end{verbatim} | |
19 | ||
20 | \wxheading{Derived from} | |
21 | ||
22 | No base class | |
23 | ||
24 | \wxheading{Include files} | |
25 | ||
26 | <tracker.h> | |
27 | ||
28 | \wxheading{Data structures} | |
29 |