2002-12-04 09:11:26 -05:00
|
|
|
\section{\class{wxNode}}\label{wxnode}
|
|
|
|
|
|
|
|
wxNodeBase is the node structure used in linked lists (see
|
|
|
|
\helpref{wxList}{wxlist}) and derived classes. You should never use wxNodeBase
|
|
|
|
class directly, however, because it works with untyped ({\tt void *}) data and
|
|
|
|
this is unsafe. Use wxNodeBase-derived classes which are automatically defined
|
|
|
|
by WX\_DECLARE\_LIST and WX\_DEFINE\_LIST macros instead as described in
|
|
|
|
\helpref{wxList}{wxlist} documentation (see example there). Also note that
|
|
|
|
although there is a class called wxNode, it is defined for backwards
|
|
|
|
compatibility only and usage of this class is strongly deprecated.
|
|
|
|
|
|
|
|
In the documentation below, the type {\tt T} should be thought of as a
|
|
|
|
``template'' parameter: this is the type of data stored in the linked list or,
|
|
|
|
in other words, the first argument of WX\_DECLARE\_LIST macro. Also, wxNode is
|
|
|
|
written as wxNode<T> even though it isn't really a template class -- but it
|
|
|
|
helps to think of it as if it were.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
None.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/list.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxList}{wxlist}, \helpref{wxHashTable}{wxhashtable}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxNode<T>::GetData}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\constfunc{T *}{GetData}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
Retrieves the client data pointer associated with the node.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxNode<T>::GetNext}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\constfunc{wxNode<T> *}{GetNext}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
Retrieves the next node or NULL if this node is the last one.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxNode<T>::GetPrevious}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\func{wxNode<T> *}{GetPrevious}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
Retrieves the previous node or NULL if this node is the first one in the list.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxNode<T>::SetData}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\func{void}{SetData}{\param{T *}{data}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Sets the data associated with the node (usually the pointer will have been
|
|
|
|
set when the node was created).
|
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxNode<T>::IndexOf}
|
1998-12-02 05:32:03 -05:00
|
|
|
|
|
|
|
\func{int}{IndexOf}{\void}
|
|
|
|
|
|
|
|
Returns the zero-based index of this node within the list. The return value
|
|
|
|
will be NOT\_FOUND if the node has not been added to a list yet.
|
1998-05-20 10:25:30 -04:00
|
|
|
|