File: node.tex

package info (click to toggle)
wxwidgets2.8 2.8.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 239,052 kB
  • ctags: 289,550
  • sloc: cpp: 1,838,857; xml: 396,717; python: 282,506; ansic: 126,171; makefile: 51,406; sh: 14,581; asm: 299; sql: 258; lex: 194; perl: 139; yacc: 128; pascal: 95; php: 39; lisp: 38; tcl: 24; haskell: 20; java: 18; cs: 18; erlang: 17; ruby: 16; ada: 9; ml: 9; csh: 9
file content (63 lines) | stat: -rw-r--r-- 2,106 bytes parent folder | download | duplicates (7)
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
\section{\class{wxNode}}\label{wxnode}

wxNodeBase is the node structure used in linked lists (see 
\helpref{wxList}{wxlist}) and derived classes. You should never use wxNodeBase
class directly, however, because it works with untyped ({\tt void *}) data and
this is unsafe. Use wxNodeBase-derived classes which are automatically defined
by WX\_DECLARE\_LIST and WX\_DEFINE\_LIST macros instead as described in
\helpref{wxList}{wxlist} documentation (see example there). Also note that
although there is a class called wxNode, it is defined for backwards
compatibility only and usage of this class is strongly deprecated.

In the documentation below, the type {\tt T} should be thought of as a
``template'' parameter: this is the type of data stored in the linked list or,
in other words, the first argument of WX\_DECLARE\_LIST macro. Also, wxNode is
written as wxNode<T> even though it isn't really a template class -- but it
helps to think of it as if it were.

\wxheading{Derived from}

None.

\wxheading{Include files}

<wx/list.h>

\wxheading{See also}

\helpref{wxList}{wxlist}, \helpref{wxHashTable}{wxhashtable}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxNode<T>::GetData}\label{wxnodegetdata}

\constfunc{T *}{GetData}{\void}

Retrieves the client data pointer associated with the node.

\membersection{wxNode<T>::GetNext}\label{wxnodegetnext}

\constfunc{wxNode<T> *}{GetNext}{\void}

Retrieves the next node or NULL if this node is the last one.

\membersection{wxNode<T>::GetPrevious}\label{wxnodegetprevious}

\func{wxNode<T> *}{GetPrevious}{\void}

Retrieves the previous node or NULL if this node is the first one in the list.

\membersection{wxNode<T>::SetData}\label{wxnodesetdata}

\func{void}{SetData}{\param{T *}{data}}

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

\membersection{wxNode<T>::IndexOf}\label{wxnodeindexof}

\func{int}{IndexOf}{\void}

Returns the zero-based index of this node within the list. The return value
will be {\tt wxNOT\_FOUND} if the node has not been added to a list yet.