]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/trackable.tex
fix LaTeX error (escape underscores); don't abuse bold face
[wxWidgets.git] / docs / latex / wx / trackable.tex
CommitLineData
a6acecec
RR
1
2\section{\class{wxTrackableBase}}\label{wxtrackablebase}
3
4Add-on base class for a trackable object. This class maintains
5an internal linked list of classes of type wxTrackerNode and
6calls OnObjectDestroy() on them if this object is destroyed.
7The most common usage is by using the \helpref{wxWeakRef<T>}{wxweakref}
8class template which automates this. This class has no public
9API. Its only use is by deriving another class from it to
10make it trackable.
11
12\begin{verbatim}
13class MyClass: public Foo, public TrackableBase
14{
15 // whatever
16}
17
18typedef wxWeakRef<MyClass> MyClassRef;
19\end{verbatim}
20
21\wxheading{Derived from}
22
23No base class
24
25\wxheading{Include files}
26
27<tracker.h>
28
29\wxheading{Data structures}
30
31
32\section{\class{wxTrackable}}\label{wxtrackable}
33
34The only difference to \helpref{wxTrackableBase}{wxtrackablebase} is
35that this class adds a virtual table to enable dynamic\_cast query for
36wxTrackable.
37
38\wxheading{Derived from}
39
40\helpref{wxTrackableBase}{wxtrackablebase}
41
42\wxheading{Include files}
43
44<tracker.h>
45
46\wxheading{Data structures}
47
48