1 \section{\class{wxScopedPtr<T>
}}\label{wxscopedptrtemplate
}
3 A scoped pointer template class. It is the template version of
4 the old-style
\helpref{scoped pointer macros
}{wxscopedptr
}.
6 \wxheading{Derived from
}
10 \wxheading{Include files
}
14 \wxheading{Data structures
}
16 {\small \begin{verbatim
}
17 typedef T element
\_type
20 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxScopedPtr<T>::wxScopedPtr<T>
}\label{wxscopedptrtemplatewxscopedptrtemplate
}
25 \func{wxEXPLICIT
}{wxScopedPtr<T>
}{\param{T *
}{ptr = NULL
}}
29 \membersection{wxScopedPtr<T>::
\destruct{wxScopedPtr<T>
}}\label{wxscopedptrtemplatedtor
}
31 \func{}{\destruct{wxScopedPtr<T>
}}{\void}
35 \membersection{wxScopedPtr<T>::get
}\label{wxscopedptrtemplateget
}
37 \constfunc{T *
}{get
}{\void}
39 Returns pointer to object or NULL.
41 \membersection{wxScopedPtr<T>::operator*
}\label{wxscopedptrtemplateoperatorptrt
}
43 \constfunc{T \&
}{operator*
}{\void}
45 Returns pointer to object. If the pointer is NULL this method will
46 cause an assert in debug mode.
48 \membersection{wxScopedPtr<T>::operator->
}\label{wxscopedptrtemplateoperatorderef
}
50 \constfunc{T *
}{operator->
}{\void}
52 Returns pointer to object. If the pointer is NULL this method will
53 cause an assert in debug mode.
55 \membersection{wxScopedPtr<T>::release
}\label{wxscopedptrtemplaterelease
}
57 \func{T*
}{release
}{\void}
59 Returns pointer to object or NULL.
61 \membersection{wxScopedPtr<T>::reset
}\label{wxscopedptrtemplatereset
}
63 \func{void
}{reset
}{\param{T *
}{ptr = NULL
}}
65 Reset pointer. Afterwards the caller is responsible for deleting
66 the data contained in the scoped pointer before.
68 \membersection{wxScopedPtr<T>::swap
}\label{wxscopedptrtemplateswap
}
70 \func{void
}{swap
}{\param{wxScopedPtr<T> \&
}{ot
}}