Maintains a list of instances of details. More...
#include <Inventor/lists/SoDetailList.h>
Public Member Functions | |
SoDetailList () | |
SoDetailList (int size) | |
SoDetailList (const SoDetailList &l) | |
virtual | ~SoDetailList () |
void | append (SoDetail *detail) |
void | insert (SoDetail *detail, int addBefore) |
virtual void | truncate (int start) |
void | copy (const SoDetailList &l) |
SoDetailList & | operator= (const SoDetailList &l) |
SoDetail * | operator[] (int i) const |
void | set (int i, SoDetail *detail) |
Maintains a list of instances of details.
This subclass of SbPList holds lists of instances of classes derived from SoDetail.
SoDetailList::SoDetailList | ( | ) | [inline] |
Constructor.
SoDetailList::SoDetailList | ( | int | size | ) | [inline] |
Constructor that pre-allocates storage for size pointers.
SoDetailList::SoDetailList | ( | const SoDetailList & | l | ) |
Constructor that copies the contents of another list.
virtual SoDetailList::~SoDetailList | ( | ) | [inline, virtual] |
Destructor.
void SoDetailList::append | ( | SoDetail * | detail | ) | [inline] |
Adds a detail to the end of the list.
void SoDetailList::copy | ( | const SoDetailList & | l | ) |
Copies a list, making a copy of each detail instance in the list.
Reimplemented from SbPList.
void SoDetailList::insert | ( | SoDetail * | detail, | |
int | addBefore | |||
) | [inline] |
Inserts given detail in list before detail with given index.
SoDetailList& SoDetailList::operator= | ( | const SoDetailList & | l | ) | [inline] |
Copies a list, making a copy of each detail instance in the list.
Reimplemented from SbPList.
SoDetail* SoDetailList::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 SoDetailList::set | ( | int | i, | |
SoDetail * | detail | |||
) |
Sets an element of a list, deleting the old entry first.
virtual void SoDetailList::truncate | ( | int | start | ) | [virtual] |
Removes all details after one with given index, inclusive.
Removed detail instances are deleted.
Reimplemented from SbPList.