Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoNodeList Class Reference

The SoNodeList class is a container for pointers to SoNode objects. More...

#include <Inventor/lists/SoNodeList.h>

Inheritance diagram for SoNodeList:
SoBaseList SbPList SoChildList

Public Member Functions

 SoNodeList (const int size)
 
 SoNodeList (const SoNodeList &nl)
 
 SoNodeList (void)
 
 ~SoNodeList ()
 
void append (SoNode *const ptr)
 
SoNodeListoperator= (const SoNodeList &nl)
 
SoNodeoperator[] (const int i) const
 
- Public Member Functions inherited from SoBaseList
 SoBaseList (const int size)
 
 SoBaseList (const SoBaseList &l)
 
 SoBaseList (void)
 
 ~SoBaseList ()
 
void addReferences (const SbBool flag)
 
void append (SoBase *ptr)
 
void copy (const SoBaseList &l)
 
void insert (SoBase *ptr, const int addbefore)
 
SbBool isReferencing (void) const
 
SoBaseListoperator= (const SoBaseList &l)
 
SoBaseoperator[] (const int i) const
 
void remove (const int index)
 
void removeItem (SoBase *item)
 
void set (const int i, SoBase *const ptr)
 
void truncate (const int length)
 
- Public Member Functions inherited from SbPList
 SbPList (const int sizehint=DEFAULTSIZE)
 
 SbPList (const SbPList &l)
 
 ~SbPList ()
 
void append (void *item)
 
void copy (const SbPList &l)
 
int find (const void *item) const
 
void fit (void)
 
voidget (const int index) const
 
void ** getArrayPtr (const int start=0) const
 
int getLength (void) const
 
void insert (void *item, const int insertbefore)
 
int operator!= (const SbPList &l) const
 
SbPListoperator= (const SbPList &l)
 
int operator== (const SbPList &l) const
 
void *& operator[] (const int index) const
 
void remove (const int index)
 
void removeFast (const int index)
 
void removeItem (void *item)
 
void set (const int index, void *item)
 
void truncate (const int length, const int fit=0)
 

Additional Inherited Members

- Protected Member Functions inherited from SbPList
void expand (const int size)
 
int getArraySize (void) const
 

Detailed Description

The SoNodeList class is a container for pointers to SoNode objects.

As this class inherits SoBaseList, referencing and dereferencing will default be done on the objects at append(), remove(), insert() etc.

Constructor & Destructor Documentation

◆ SoNodeList() [1/3]

SoNodeList::SoNodeList ( void )

Default constructor.

◆ SoNodeList() [2/3]

SoNodeList::SoNodeList ( const int size)

Constructor with a hint about the number of elements the list will hold.

See also
SoBaseList::SoBaseList(const int)

◆ SoNodeList() [3/3]

SoNodeList::SoNodeList ( const SoNodeList & nl)

Copy constructor.

See also
SoBaseList::SoBaseList(const SoBaseList &)

◆ ~SoNodeList()

SoNodeList::~SoNodeList ( )

Destructor.

See also
SoBaseList::~SoBaseList()

Member Function Documentation

◆ append()

void SoNodeList::append ( SoNode *const ptr)

Append ptr to the list.

See also
SoBaseList::append()

◆ operator=()

SoNodeList & SoNodeList::operator= ( const SoNodeList & nl)

Copy contents of list nl to this list.

See also
SoBaseList::operator=()

◆ operator[]()

SoNode * SoNodeList::operator[] ( const int i) const

Return node pointer at index i.

See also
SoBaseList::operator[]()

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