Maintains a list of SoTypes. More...
#include <Inventor/lists/SoTypeList.h>
Public Member Functions | |
SoTypeList () | |
Constructor. | |
SoTypeList (int size) | |
Constructor that pre-allocates storage for size types. | |
SoTypeList (const SoTypeList &l) | |
Constructor that copies the contents of another list. | |
virtual | ~SoTypeList () |
Destructor. | |
void | append (SoType typeId) |
Adds a type to the end of the list. | |
int | find (SoType typeId) const |
Returns index of given type in list, or -1 if not found. | |
void | insert (SoType typeId, int addBefore) |
Inserts given type in list before type with given index. | |
SoType | operator[] (int i) const |
Returns pointer with given index. | |
void | set (int i, SoType typeId) |
Sets an element of a list. | |
Public Member Functions inherited from SbPList | |
SbPList () | |
Default constructor. | |
SbPList (int initSize) | |
Constructor. | |
SbPList (const SbPList &pl) | |
Constructor. | |
virtual | ~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. | |
virtual void | remove (int which) |
Removes pointer with given index. | |
int | getLength () const |
Returns number of pointers in list. | |
virtual void | truncate (int start) |
Removes all pointers after one with given index, inclusive. | |
void | copy (const SbPList &pl) |
Copies a list. | |
SbPList & | operator= (const SbPList &pl) |
Assignment operator: copies list into this list. | |
void *& | operator[] (const int index) const |
Returns pointer with given index. | |
int | operator== (const SbPList &pl) const |
Equality operator. | |
int | operator!= (const SbPList &pl) const |
Inequality operator. | |
void | swap (int index1, int index2) |
Swaps element having index1 with the one having index2. | |
Maintains a list of SoTypes.
This subclass of SbPList holds lists of SoType type identifiers.
Definition at line 71 of file SoTypeList.h.
|
inline |
Constructor.
Definition at line 77 of file SoTypeList.h.
|
inline |
Constructor that pre-allocates storage for size types.
Definition at line 82 of file SoTypeList.h.
|
inline |
Constructor that copies the contents of another list.
Definition at line 87 of file SoTypeList.h.
|
inlinevirtual |
Destructor.
Definition at line 92 of file SoTypeList.h.
void SoTypeList::append | ( | SoType | typeId | ) |
Adds a type to the end of the list.
int SoTypeList::find | ( | SoType | typeId | ) | const |
Returns index of given type in list, or -1 if not found.
void SoTypeList::insert | ( | SoType | typeId, |
int | addBefore | ||
) |
Inserts given type in list before type with given index.
SoType SoTypeList::operator[] | ( | int | i | ) | const |
Returns pointer with given index.
If requested index does not exists, list is grown to return a valid pointer.
void SoTypeList::set | ( | int | i, |
SoType | typeId | ||
) |
Sets an element of a list.