1SoBaseList(3IV)() SoBaseList(3IV)()
2
3
4
6 SoBaseList — maintains a list of pointers to instances of the SoBase
7 classes
8
10 SbPList > SoBaseList
11
13 #include <Inventor/SoLists.h>
14
15 Methods from class SoBaseList:
16
17 SoBaseList()
18 SoBaseList(int size)
19 SoBaseList(const SoBaseList &l)
20 ~SoBaseList()
21 void append(SoBase *ptr)
22 void insert(SoBase *ptr, int addBefore)
23 void remove(int which)
24 void truncate(int start)
25 void copy(const SoBaseList &l)
26 SoBaseList & operator =(const SoBaseList &l)
27 SoBase * operator [](int i) const
28 void set(int i, SoBase *ptr)
29 void addReferences(SbBool flag)
30
31 Methods from class SbPList:
32
33 int find(const void *ptr) const
34 int getLength() const
35 int operator ==(const SbPList &pl) const
36 int operator !=(const SbPList &pl) const
37
38
40 This subclass of SbPList holds lists of pointers to instances of
41 classes derived from SoBase (an abstract class). A flag indicates
42 whether adding an instance pointer to the list should add a reference
43 to the instance. If this flag is TRUE, then adding and removing point‐
44 ers from the list updates reference counts in the corresponding
45 instances.
46
48 SoBaseList()
49 Constructor.
50
51 SoBaseList(int size)
52 Constructor that pre-allocates storage for size pointers.
53
54 SoBaseList(const SoBaseList &l)
55 Constructor that copies the contents of another list.
56
57 ~SoBaseList()
58 Destructor.
59
60 void append(SoBase *ptr)
61 Adds a pointer to the end of the list.
62
63 void insert(SoBase *ptr, int addBefore)
64 Inserts given pointer in list before pointer with given index.
65
66 void remove(int which)
67 Removes pointer with given index.
68
69 void truncate(int start)
70 Removes all pointers after one with given index, inclusive.
71
72 void copy(const SoBaseList &l)
73 Copies a list, keeping all reference counts correct.
74
75 SoBaseList & operator =(const SoBaseList &l)
76 Copies a list, keeping all reference counts correct.
77
78 SoBase * operator [](int i) const
79 Accesses an element of a list.
80
81 void set(int i, SoBase *ptr)
82 Sets an element of a list.
83
84 void addReferences(SbBool flag)
85 Indicates whether to call ref() and unref() for bases in the list
86 when adding/removing them. The default value is TRUE.
87
88
90 SoBase, SoNodeList, SoPathList
91
92
93
94
95 SoBaseList(3IV)()