Debian Codegraph @

doc/man/man3/ivm/general/SoBaseList.ivm

raw
1 NAME SoBaseList "" "" {
2 maintains a list of pointers to instances of the \cSoBase\. classes
3 }
4
5 INCLUDE SoLists.h
6
7 DESC {
8 This subclass of \cSbPList\. holds lists of pointers to
9 instances of classes derived from \cSoBase\. (an abstract class). A
10 flag indicates whether adding an instance pointer to the list should
11 add a reference to the instance. If this flag is TRUE, then adding and
12 removing pointers from the list updates reference counts in the
13 corresponding instances.
14 }
15
16 METHOD "" SoBaseList() { Constructor. }
17
18 METHOD createSize SoBaseList(int size) {
19 Constructor that pre-allocates storage for \asize\. pointers.
20 }
21
22 METHOD " " SoBaseList(const SoBaseList &l) {
23 Constructor that copies the contents of another list.
24 }
25
26 METHOD "" ~SoBaseList() { Destructor. }
27
28 METHOD "" void append(SoBase *ptr) { Adds a pointer to the end of the list. }
29
30 METHOD "" void insert(SoBase *ptr, int addBefore) {
31 Inserts given pointer in list before pointer with given index.
32 }
33
34 METHOD "" void remove(int which) { Removes pointer with given index. }
35
36 METHOD "" void truncate(int start) {
37 Removes all pointers after one with given index, inclusive.
38 }
39
40 METHOD "" void copy(const SoBaseList &l) {
41 Copies a list, keeping all reference counts correct.
42 }
43
44 BEGIN C++
45 METHOD "" SoBaseList & operator =(const SoBaseList &l) {
46 Copies a list, keeping all reference counts correct.
47 }
48 END
49
50 METHOD "" SoBase * operator [\|](int i) const { Accesses an element of a list. }
51
52 METHOD "" void set(int i, SoBase *ptr) { Sets an element of a list. }
53
54 METHOD "" void addReferences(SbBool flag) {
55 Indicates whether to call \mref()\. and \munref()\. for bases in the
56 list when adding/removing them. The default value is TRUE.
57 }
58
59 ALSO { SoBase, SoNodeList, SoPathList }