This is a simple scoped smart pointer array implementation that is similar to
the \urlref{Boost}{http://www.boost.org} smart pointers but rewritten to
This is a simple scoped smart pointer array implementation that is similar to
the \urlref{Boost}{http://www.boost.org} smart pointers but rewritten to
deleted when the smart pointer goes out of scope. The first argument
of the macro is the pointer type, the second is the name of the new
smart pointer class being created. Below we will use wxScopedArray to
deleted when the smart pointer goes out of scope. The first argument
of the macro is the pointer type, the second is the name of the new
smart pointer class being created. Below we will use wxScopedArray to
\func{}{wxScopedArray}{\param{type}{ * T = NULL}}
Creates the smart pointer with the given pointer or none if NULL. On
compilers that support it, this uses the explicit keyword.
\func{}{wxScopedArray}{\param{type}{ * T = NULL}}
Creates the smart pointer with the given pointer or none if NULL. On
compilers that support it, this uses the explicit keyword.
arguments are specified. This function does check to make sure that the
pointer you are assigning is not the same pointer that is already stored.
arguments are specified. This function does check to make sure that the
pointer you are assigning is not the same pointer that is already stored.
\func{const T \&}{operator []}{\param{long int}{i}}
This operator acts like the standard [] indexing operator for C++ arrays. The
function does not do bounds checking.
\func{const T \&}{operator []}{\param{long int}{i}}
This operator acts like the standard [] indexing operator for C++ arrays. The
function does not do bounds checking.
\func{const T*}{get}{\void}
This operator gets the pointer stored in the smart pointer or returns NULL if
there is none.
\func{const T*}{get}{\void}
This operator gets the pointer stored in the smart pointer or returns NULL if
there is none.