SoNodeList Class Reference
[Nodes]

Maintains a list of pointers to nodes. More...

#include <Inventor/lists/SoNodeList.h>

Inheritance diagram for SoNodeList:
SoBaseList SbPList

List of all members.

Public Member Functions

 SoNodeList ()
 SoNodeList (int size)
 SoNodeList (const SoNodeList &l)
virtual ~SoNodeList ()
void append (SoNode *ptr)
SoNodeoperator[] (int i) const
SoNodeListoperator= (const SoNodeList &l)

Detailed Description

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.

SEE ALSO

SoNode


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/