## wxNodeBase

A node structure used in linked lists (see 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_DEFINE_LIST macros instead as described in wxList documentation (see example there). wxNode is defined for compatibility as wxNodeBase containing "wxObject *" pointer, but usage of this class is deprecated.

Derived from

None.

Include files

<wx/list.h>

See also

wxList, wxHashTable

Members

wxNodeBase::GetData
wxNodeBase::GetNext
wxNodeBase::GetPrevious
wxNodeBase::SetData
wxNodeBase::IndexOf

### wxNodeBase::GetData

void * Data()

Retrieves the client data pointer associated with the node.

### wxNodeBase::GetNext

wxNodeBase * Next()

Retrieves the next node (NULL if at end of list).

### wxNodeBase::GetPrevious

wxNodeBase * GetPrevious()

Retrieves the previous node (NULL if at start of list).

### wxNodeBase::SetData

void SetData(void *data)

Sets the data associated with the node (usually the pointer will have been set when the node was created).

### wxNodeBase::IndexOf

int IndexOf()

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.