File: wx155.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (68 lines) | stat: -rw-r--r-- 2,542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<HTML>
<head><title>wxNodeBase</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxnode"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx154.htm#wxmutexlocker"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx156.htm#wxnotebook"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxNodeBase</H2>
<P>
A node structure used in linked lists (see <A HREF="wx127.htm#wxlist">wxList</A>) 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 <A HREF="wx127.htm#wxlist">wxList</A> documentation (see example there). wxNode
is defined for compatibility as wxNodeBase containing "wxObject *" pointer, but
usage of this class is deprecated.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
None.<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/list.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx127.htm#wxlist">wxList</A>, <A HREF="wx110.htm#wxhashtable">wxHashTable</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic611">wxNodeBase::GetData</A><BR>
<A HREF="#topic612">wxNodeBase::GetNext</A><BR>
<A HREF="#topic613">wxNodeBase::Previous</A><BR>
<A HREF="#topic614">wxNodeBase::SetData</A><BR>
<A HREF="#topic615">wxNodeBase::IndexOf</A><BR>
<P>

<HR>
<A NAME="topic611"></A>
<H3>wxNodeBase::GetData</H3>
<P>
<B>void *</B> <B>Data</B>()<P>
Retrieves the client data pointer associated with the node.<P>

<HR>
<A NAME="topic612"></A>
<H3>wxNodeBase::GetNext</H3>
<P>
<B>wxNodeBase *</B> <B>Next</B>()<P>
Retrieves the next node (NULL if at end of list).<P>

<HR>
<A NAME="topic613"></A>
<H3>wxNodeBase::Previous</H3>
<P>
<B>wxNodeBase *</B> <B>GetPrevious</B>()<P>
Retrieves the previous node (NULL if at start of list).<P>

<HR>
<A NAME="topic614"></A>
<H3>wxNodeBase::SetData</H3>
<P>
<B>void</B> <B>SetData</B>(<B>void *</B><I>data</I>)<P>
Sets the data associated with the node (usually the pointer will have been
set when the node was created).<P>

<HR>
<A NAME="topic615"></A>
<H3>wxNodeBase::IndexOf</H3>
<P>
<B>int</B> <B>IndexOf</B>()<P>
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.<P>

</BODY></HTML>