Maintains a list of pointers to fields. More...
#include <Inventor/lists/SoFieldList.h>
Public Member Functions | |
SoFieldList () | |
SoFieldList (int size) | |
SoFieldList (const SoFieldList &l) | |
virtual | ~SoFieldList () |
void | append (SoField *field) |
void | insert (SoField *field, int addBefore) |
SoField * | operator[] (int i) const |
void | set (int i, SoField *Field) |
Maintains a list of pointers to fields.
This subclass of SbPList holds lists of pointers to instances of classes derived from SoField.
SoFieldList::SoFieldList | ( | ) | [inline] |
Constructor.
SoFieldList::SoFieldList | ( | int | size | ) | [inline] |
Constructor that pre-allocates storage for size pointers.
SoFieldList::SoFieldList | ( | const SoFieldList & | l | ) | [inline] |
Constructor that copies the contents of another list.
virtual SoFieldList::~SoFieldList | ( | ) | [inline, virtual] |
Destructor.
void SoFieldList::append | ( | SoField * | field | ) | [inline] |
Adds a pointer to the end of the list.
void SoFieldList::insert | ( | SoField * | field, | |
int | addBefore | |||
) | [inline] |
Inserts given pointer in list before pointer with given index.
SoField* SoFieldList::operator[] | ( | int | i | ) | const [inline] |
Returns pointer with given index. If requested index does not exists, list is grown to return a valid pointer.
Reimplemented from SbPList.
void SoFieldList::set | ( | int | i, | |
SoField * | Field | |||
) | [inline] |
Sets an element of a list.