\section{\class{wxWeakRef}}\label{wxweakref} A weak reference to an object of type T, where T has type \helpref{wxTrackableBase}{wxTrackableBase} as one of its base classes (in a static or dynamic sense). \begin{verbatim} class MyClass: public Foo, public TrackableBase { // whatever } typedef wxWeakRef MyClassRef; \end{verbatim} \wxheading{Derived from} wxTrackerNode \wxheading{Include files} \wxheading{Data structures} \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxWeakRef::wxWeakRef}\label{wxweakrefwxweakref} \func{}{wxWeakRef}{\param{T* }{pobj = NULL}} Constructor. \membersection{wxWeakRef::\destruct{wxWeakRef}}\label{wxweakrefdtor} \func{}{\destruct{wxWeakRef}}{\void} Destructor. \membersection{wxWeakRef::T*}\label{wxweakreft} \func{operator}{T*}{\void} Returns pointer to tracked object or NULL. \membersection{wxWeakRef::operator->}\label{wxweakrefoperatorderef} \func{T*}{operator->}{\void} Returns pointer to tracked object or NULL. \membersection{wxWeakRef::operator=}\label{wxweakrefoperatorassign} \func{T* operator}{operator=}{\param{T* }{pobj}} Assigns pointer to trackable object to this weak reference. \membersection{wxWeakRef::Assign}\label{wxweakrefassign} \func{void}{Assign}{\param{T* }{pobj}} This uses static\_cast if possible or dynamic\_cast otherwise. \membersection{wxWeakRef::GetTrackable}\label{wxweakrefgettrackable} \func{wxTrackableBase*}{GetTrackable}{\param{T* }{pobj}} Returns the trackable objects to which the weak reference points or NULL if it has been destroyed. \membersection{wxWeakRef::OnObjectDestroy}\label{wxweakrefonobjectdestroy} \func{virtual void}{OnObjectDestroy}{\void} Called when the tracked object is destroyed. Be default sets internal pointer to NULL.