mention more predefined array classes (part of patch 1695722)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,8 +56,7 @@ int, long and their unsigned variants) or pointers (of any kind). An attempt
|
|||||||
to use with objects of sizeof() greater than sizeof(long) will provoke a
|
to use with objects of sizeof() greater than sizeof(long) will provoke a
|
||||||
runtime assertion failure, however declaring a wxArray of floats will not (on
|
runtime assertion failure, however declaring a wxArray of floats will not (on
|
||||||
the machines where sizeof(float) <= sizeof(long)), yet it will {\bf not} work,
|
the machines where sizeof(float) <= sizeof(long)), yet it will {\bf not} work,
|
||||||
please use wxObjArray for storing floats and doubles (NB: a more efficient
|
please use wxObjArray for storing floats and doubles.
|
||||||
wxArrayDouble class is scheduled for the next release of wxWidgets).
|
|
||||||
|
|
||||||
wxSortedArray is a wxArray variant which should be used when searching in the
|
wxSortedArray is a wxArray variant which should be used when searching in the
|
||||||
array is a frequently used operation. It requires you to define an additional
|
array is a frequently used operation. It requires you to define an additional
|
||||||
@@ -299,8 +298,9 @@ class MyClass;
|
|||||||
WX_DEFINE_ARRAY(MyClass *, ArrayOfMyClass);
|
WX_DEFINE_ARRAY(MyClass *, ArrayOfMyClass);
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
Note that wxWidgets predefines the following standard array classes: wxArrayInt,
|
Note that wxWidgets predefines the following standard array classes: {\bf wxArrayInt},
|
||||||
wxArrayLong and wxArrayPtrVoid.
|
{\bf wxArrayLong}, {\bf wxArrayShort}, {\bf wxArrayDouble}, {\bf wxArrayPtrVoid}.
|
||||||
|
|
||||||
|
|
||||||
\membersection{WX\_DEFINE\_SORTED\_ARRAY}\label{wxdefinesortedarray}
|
\membersection{WX\_DEFINE\_SORTED\_ARRAY}\label{wxdefinesortedarray}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user