Maintains a list of SoTypes. More...
#include <Inventor/lists/SoTypeList.h>
Public Member Functions | |
| SoTypeList () | |
| SoTypeList (int size) | |
| SoTypeList (const SoTypeList &l) | |
| virtual | ~SoTypeList () |
| void | append (SoType typeId) |
| int | find (SoType typeId) const |
| void | insert (SoType typeId, int addBefore) |
| SoType | operator[] (int i) const |
| void | set (int i, SoType typeId) |
Maintains a list of SoTypes.
This subclass of SbPList holds lists of SoType type identifiers.
| SoTypeList::SoTypeList | ( | ) | [inline] |
Constructor.
| SoTypeList::SoTypeList | ( | int | size | ) | [inline] |
Constructor that pre-allocates storage for size types.
| SoTypeList::SoTypeList | ( | const SoTypeList & | l | ) | [inline] |
Constructor that copies the contents of another list.
| virtual SoTypeList::~SoTypeList | ( | ) | [inline, virtual] |
Destructor.
| 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.
Reimplemented from SbPList.
| void SoTypeList::set | ( | int | i, | |
| SoType | typeId | |||
| ) |
Sets an element of a list.