Debian Codegraph @

doc/man/man3/ivm/basics/SbPList.ivm

raw
1 NAME SbPList "" "" { list of generic (void *) pointers }
2 INCLUDE SbPList.h
3 DESC {
4 This class manages a dynamic list of generic \kvoid *\. pointers.
5 This class allows random access, insertion, and removal.
6 }
7 METHOD "" SbPList() {}
8 BEGIN C++
9 METHOD "" SbPList(const SbPList &pl) {}
10 END
11 METHOD createN SbPList(int initSize) {}
12 METHOD "" ~SbPList() {
13 Constructors and destructor.
14 \ainitSize\. specifies an initial size for the list, which is useful as an
15 optimization if you can estimate the length of the list before you construct
16 it. If another \cSbPList\. is given, it returns a copy of that list.
17 }
18 METHOD "" void append(void * ptr) {
19 Adds given pointer to end of list.
20 }
21 METHOD "" int find(const void *ptr) const {
22 Returns index of given pointer in list, or -1 if not found.
23 }
24 METHOD "" void insert(void *ptr, int addBefore) {
25 Inserts given pointer in list before pointer with given index.
26 }
27 METHOD "" void remove(int which) {
28 Removes pointer with given index.
29 }
30 METHOD getLen int getLength() const {
31 Returns number of pointers in list.
32 }
33 METHOD "" void truncate(int start) {
34 Removes all pointers after one with given index, inclusive.
35 }
36 METHOD "" void copy(const SbPList &pl) {
37 Copy a list.
38 }
39 BEGIN C++
40 METHOD "" SbPList & operator =(const SbPList &pl) {
41 Assignment operator; copies list into this list.
42 }
43 END
44 METHOD "" void *& operator [\|](int i) const {
45 Returns pointer with given index.
46 }
47 METHOD "" int operator ==(const SbPList &pl) const {}
48 METHOD "" int operator !=(const SbPList &pl) const {
49 Equality and inequality operators.
50 }