1999-01-02 23:02:30 +00:00
|
|
|
\section{\class{wxNodeBase}}\label{wxnode}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00: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 14:25:30 +00:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
None.
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/list.h>
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxList}{wxlist}, \helpref{wxHashTable}{wxhashtable}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\membersection{wxNodeBase::GetData}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\func{void *}{Data}{\void}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
Retrieves the client data pointer associated with the node.
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\membersection{wxNodeBase::GetNext}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\func{wxNodeBase *}{Next}{\void}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
Retrieves the next node (NULL if at end of list).
|
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\membersection{wxNodeBase::Previous}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\func{wxNodeBase *}{GetPrevious}{\void}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
Retrieves the previous node (NULL if at start of list).
|
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\membersection{wxNodeBase::SetData}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\func{void}{SetData}{\param{void *}{data}}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
Sets the data associated with the node (usually the pointer will have been
|
|
|
|
set when the node was created).
|
|
|
|
|
1999-01-02 23:02:30 +00:00
|
|
|
\membersection{wxNodeBase::IndexOf}
|
1998-12-02 10:32:03 +00: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 14:25:30 +00:00
|
|
|
|