File: SoDetailList.ivm

package info (click to toggle)
inventor 2.1.5-10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,884 kB
  • ctags: 21,728
  • sloc: ansic: 33,861; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 358; perl: 234; awk: 141; makefile: 74; csh: 35; sed: 11
file content (53 lines) | stat: -rw-r--r-- 1,305 bytes parent folder | download | duplicates (12)
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
NAME SoDetailList SoDtlList "" { maintains a list of instances of details }

INCLUDE SoLists.h

DESC {
This subclass of \cSbPList\. holds lists of instances of
classes derived from \cSoDetail\..
}

METHOD "" SoDetailList() { Constructor. }

METHOD createSize SoDetailList(int size) {
Constructor that pre-allocates storage for \asize\. pointers.
}

METHOD " " SoDetailList(const SoDetailList &l) {
Constructor that copies the contents of another list.
}

METHOD "" ~SoDetailList() { Destructor. }

METHOD "" void append(SoDetail *detail) {
Adds a detail to the end of the list.
}

METHOD "" void insert(SoDetail *detail, int addBefore) {
Inserts given detail in list before detail with given index.
}

METHOD "" void truncate(int start) {
Removes all details after one with given index, inclusive. Removed
detail instances are deleted.
}

METHOD "" void copy(const SoDetailList &l) {
Copies a list, making a copy of each detail instance in the list.
}

BEGIN C++
METHOD "" SoDetailList & operator =(const SoDetailList &l) {
Copies a list, making a copy of each detail instance in the list.
}
END

METHOD "" SoDetail * operator [\|](int i) const {
Accesses an element of a list.
}

METHOD "" void set(int i, SoDetail *detail) {
Sets an element of a list, deleting the old entry first.
}

ALSO { SoDetail }