1SbPList(3IV)()                                                  SbPList(3IV)()
2
3
4

NAME

6       SbPList — list of generic (void *) pointers
7

INHERITS FROM

9       SbPList
10

SYNOPSIS

12       #include <Inventor/SbPList.h>
13
14          Methods from class SbPList:
15
16                         SbPList()
17                         SbPList(const SbPList &pl)
18                         SbPList(int initSize)
19                         ~SbPList()
20     void                append(void * ptr)
21     int                 find(const void *ptr) const
22     void                insert(void *ptr, int addBefore)
23     void                remove(int which)
24     int                 getLength() const
25     void                truncate(int start)
26     void                copy(const SbPList &pl)
27     SbPList &           operator =(const SbPList &pl)
28     void *&             operator [](int i) const
29     int                 operator ==(const SbPList &pl) const
30     int                 operator !=(const SbPList &pl) const
31
32

DESCRIPTION

34       This  class  manages  a  dynamic  list of generic void * pointers. This
35       class allows random access, insertion, and removal.
36

METHODS

38                         SbPList()
39                         SbPList(const SbPList &pl)
40                         SbPList(int initSize)
41                         ~SbPList()
42          Constructors and destructor. initSize specifies an initial size  for
43          the list, which is useful as an optimization if you can estimate the
44          length of the list before you construct it. If  another  SbPList  is
45          given, it returns a copy of that list.
46
47     void                append(void * ptr)
48          Adds given pointer to end of list.
49
50     int                 find(const void *ptr) const
51          Returns index of given pointer in list, or -1 if not found.
52
53     void                insert(void *ptr, int addBefore)
54          Inserts given pointer in list before pointer with given index.
55
56     void                remove(int which)
57          Removes pointer with given index.
58
59     int                 getLength() const
60          Returns number of pointers in list.
61
62     void                truncate(int start)
63          Removes all pointers after one with given index, inclusive.
64
65     void                copy(const SbPList &pl)
66          Copy a list.
67
68     SbPList &           operator =(const SbPList &pl)
69          Assignment operator; copies list into this list.
70
71     void *&             operator [](int i) const
72          Returns pointer with given index.
73
74     int                 operator ==(const SbPList &pl) const
75     int                 operator !=(const SbPList &pl) const
76          Equality and inequality operators.
77
78
79
80
81                                                                SbPList(3IV)()
Impressum