Maintains a list of pointers to nodes. More...
#include <Inventor/lists/SoNodeList.h>
Public Member Functions | |
| SoNodeList () | |
| SoNodeList (int size) | |
| SoNodeList (const SoNodeList &l) | |
| virtual | ~SoNodeList () |
| void | append (SoNode *ptr) |
| SoNode * | operator[] (int i) const |
| SoNodeList & | operator= (const SoNodeList &l) |
Maintains a list of pointers to nodes.
This subclass of SoBaseList holds lists of pointers to SoNodes. It updates reference counts to nodes in the list whenever adding or removing pointers.
| SoNodeList::SoNodeList | ( | ) | [inline] |
Constructor.
| SoNodeList::SoNodeList | ( | int | size | ) | [inline] |
Constructor that pre-allocates storage for size pointers.
| SoNodeList::SoNodeList | ( | const SoNodeList & | l | ) | [inline] |
Constructor that copies the contents of another list.
| virtual SoNodeList::~SoNodeList | ( | ) | [inline, virtual] |
Destructor.
| void SoNodeList::append | ( | SoNode * | ptr | ) | [inline] |
Adds a pointer to the end of the list.
| SoNodeList& SoNodeList::operator= | ( | const SoNodeList & | l | ) | [inline] |
Copies a list, keeping all reference counts correct.
Reimplemented from SoBaseList.
| SoNode* SoNodeList::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 SoBaseList.