1 \section{\class{wxNodeBase
}}\label{wxnode
}
3 A node structure used in linked lists (see
\helpref{wxList
}{wxlist
}) and
4 derived classes. You should never use wxNodeBase class directly because it
5 works with untyped (void *) data and this is unsafe. Use wxNode-derived classes
6 which are defined by WX
\_DECLARE\_LIST and WX
\_DEFIBE\_LIST macros instead as
7 described in
\helpref{wxList
}{wxlist
} documentation (see example there). wxNode
8 is defined for compatibility as wxNodeBase containing "wxObject *" pointer, but
9 usage of this class is deprecated.
11 \wxheading{Derived from
}
15 \wxheading{Include files
}
21 \helpref{wxList
}{wxlist
},
\helpref{wxHashTable
}{wxhashtable
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxNodeBase::GetData
}
27 \func{void *
}{Data
}{\void}
29 Retrieves the client data pointer associated with the node.
31 \membersection{wxNodeBase::GetNext
}
33 \func{wxNodeBase *
}{Next
}{\void}
35 Retrieves the next node (NULL if at end of list).
37 \membersection{wxNodeBase::GetPrevious
}
39 \func{wxNodeBase *
}{GetPrevious
}{\void}
41 Retrieves the previous node (NULL if at start of list).
43 \membersection{wxNodeBase::SetData
}
45 \func{void
}{SetData
}{\param{void *
}{data
}}
47 Sets the data associated with the node (usually the pointer will have been
48 set when the node was created).
50 \membersection{wxNodeBase::IndexOf
}
52 \func{int
}{IndexOf
}{\void}
54 Returns the zero-based index of this node within the list. The return value
55 will be NOT
\_FOUND if the node has not been added to a list yet.