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

SbPList Class Reference
[Base classes]

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

#include <Inventor/lists/SbPList.h>

Inheritance diagram for SbPList:

SbList< void * > SoActionMethodList SoAuditorList SoBaseList SoEngineList SoNodeList SoPathList SoChildList List of all members.

Public Member Functions

 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  item
[inline]
 

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

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

Returns element at index.

Overridden 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 from SbList< void * >.

Reimplemented in SoBaseList, SoEngineList, SoNodeList, and SoPathList.

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

Index operator to set element at index.

Overridden 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 from SbList< void * >.

Reimplemented in SoActionMethodList.


The documentation for this class was generated from the following files:
Generated on Tue Jul 27 23:53:06 2004 for Coin by doxygen 1.3.7