Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SbPList Class Reference

The SbPList class is a container class for void pointers. More...

#include <Inventor/lists/SbPList.h>

Inheritance diagram for SbPList::

SoActionMethodList SoAuditorList SoBaseList SoEngineList SoNodeList SoPathList SoChildList List of all members.

Public Methods

 SbPList (void)
 SbPList (const int sizehint)
 SbPList (const SbPList &l)
void * get (const int index) const
void set (const int index, void *const item)
void * operator[] (const int index) const
void *& operator[] (const int index)

Detailed Description

The SbPList class is a container class for void pointers.

This class is for most purposes superseded by the Coin-specific SbList class.

See also:
SbList


Constructor & Destructor Documentation

SbPList::SbPList void [inline]
 

Default constructor.

SbPList::SbPList const int sizehint [inline]
 

This constructor initializes the internal allocated size for the list to sizehint. Note that the list will still initially contain zero items.

See also:
SbList::SbList(const int sizehint)

SbPList::SbPList const SbPList & l [inline]
 

Copy constructor.

See also:
SbList::SbList(const SbList<Type> & l)


Member Function Documentation

void * SbPList::get const int index const [inline]
 

Returns element at index. Does not expand array bounds if index is outside the list.

void SbPList::set const int index,
void * const
[inline]
 

Index operator to set element at index. Does not expand array bounds if index is outside the list.

void * SbPList::operator[] const int i const
 

Returns element at index.

Overloaded from parent class to automatically expand the size of the internal array if index is outside the current bounds of the list. The values of any additional pointers are then set to NULL.

Reimplemented in SoBaseList, SoEngineList, SoNodeList, and SoPathList.

void *& SbPList::operator[] const int index
 

Index operator to set element at index.

Overloaded from parent class to automatically expand the size of the internal array if index is outside the current bounds of the list. The values of any additional pointers are then set to NULL.

Reimplemented in SoActionMethodList.


The documentation for this class was generated from the following files:
Generated at Tue Mar 5 03:31:28 2002 for Coin by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001