Open Inventor Reference
|
Maintains a list of instances of details. More...
#include <Inventor/SoLists.h>
Public Member Functions | |
SoDetailList () | |
SoDetailList (int size) | |
SoDetailList (const SoDetailList &l) | |
Constructor that copies the contents of another list. | |
~SoDetailList () | |
Destructor. | |
void | append (SoDetail *detail) |
Adds a detail to the end of the list. | |
void | insert (SoDetail *detail, int addBefore) |
Inserts given detail in list before detail with given index. | |
void | truncate (int start) |
Removes all details after one with given index, inclusive. | |
void | copy (const SoDetailList &l) |
Copies a list, making a copy of each detail instance in the list. | |
SoDetailList & | operator= (const SoDetailList &l) |
Copies a list, making a copy of each detail instance in the list. | |
SoDetail * | operator[] (int i) const |
Access an element of a list. | |
void | set (int i, SoDetail *detail) |
Sets an element of a list, deleting the old entry first. | |
![]() | |
SbPList () | |
Constructor. | |
SbPList (int initSize) | |
initSize specifies an initial size for the list, which is useful as an optimization if you can estimate the length of the list before you construct it. | |
SbPList (const SbPList &pl) | |
Copy constructor. | |
~SbPList () | |
Destructor. | |
void | append (void *ptr) |
Adds given pointer to end of list. | |
int | find (const void *ptr) const |
Returns index of given pointer in list, or -1 if not found. | |
void | insert (void *ptr, int addBefore) |
Inserts given pointer in list before pointer with given index. | |
void | remove (int which) |
Removes pointer with given index. | |
int | getLength () const |
Returns number of pointers in list. | |
void | truncate (int start) |
Removes all pointers after one with given index, inclusive. | |
void | copy (const SbPList &pl) |
Copy a list. | |
SbPList & | operator= (const SbPList &pl) |
Assignment operator; copies list into this list. | |
void *& | operator[] (int i) const |
Returns pointer with given index. | |
bool | operator== (const SbPList &pl) const |
Equality and inequality operators. | |
bool | operator!= (const SbPList &pl) const |
Equality and inequality operators. | |
void * | get (int i) const |
Internal versions of [] that do not check for bounds: | |
void | set (int i, void *j) |
|
inline |
Definition at line 335 of file SoLists.h.
References SbPList::SbPList().
Referenced by copy(), operator=(), and SoDetailList().
|
inline |
Definition at line 336 of file SoLists.h.
References SbPList::SbPList().
SoDetailList::SoDetailList | ( | const SoDetailList & | l | ) |
References SoDetailList().
|
inline |
Definition at line 340 of file SoLists.h.
References SbPList::truncate().
|
inline |
Definition at line 343 of file SoLists.h.
References SbPList::append().
void SoDetailList::copy | ( | const SoDetailList & | l | ) |
References SoDetailList().
|
inline |
Definition at line 347 of file SoLists.h.
References SbPList::insert().
|
inline |
Definition at line 357 of file SoLists.h.
References SbPList::copy(), and SoDetailList().
|
inline |
Definition at line 361 of file SoLists.h.
References SbPList::SbPList().
void SoDetailList::set | ( | int | i, |
SoDetail * | detail ) |
void SoDetailList::truncate | ( | int | start | ) |
Removed detail instances are deleted.