1999-01-02 18:02:30 -05:00
|
|
|
\section{\class{wxNodeBase}}\label{wxnode}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
A node structure used in linked lists (see \helpref{wxList}{wxlist}) and
|
|
|
|
derived classes. You should never use wxNodeBase class directly because it
|
|
|
|
works with untyped (void *) data and this is unsafe. Use wxNode-derived classes
|
|
|
|
which are defined by WX\_DECLARE\_LIST and WX\_DEFIBE\_LIST macros instead as
|
|
|
|
described in \helpref{wxList}{wxlist} documentation (see example there). wxNode
|
|
|
|
is defined for compatibility as wxNodeBase containing "wxObject *" pointer, but
|
|
|
|
usage of this class is deprecated.
|
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}}}
|
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\membersection{wxNodeBase::GetData}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{void *}{Data}{\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
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\membersection{wxNodeBase::GetNext}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{wxNodeBase *}{Next}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Retrieves the next node (NULL if at end of list).
|
|
|
|
|
1999-07-22 19:28:55 -04:00
|
|
|
\membersection{wxNodeBase::GetPrevious}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{wxNodeBase *}{GetPrevious}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Retrieves the previous node (NULL if at start of list).
|
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\membersection{wxNodeBase::SetData}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\func{void}{SetData}{\param{void *}{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).
|
|
|
|
|
1999-01-02 18:02:30 -05:00
|
|
|
\membersection{wxNodeBase::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
|
|
|
|