Open Inventor Reference
SbPList Class Reference

List of generic (void *) pointers. More...

#include <Inventor/SbPList.h>

Inheritance diagram for SbPList:
SbIntList SbStringList SbVec3fList SoActionMethodList SoAuditorList SoBaseList SoDetailList SoEngineOutputList SoFieldList SoPickedPointList SoTypeList

List of all members.

Public Member Functions

 SbPList ()
 Constructor.
 SbPList (int initSize)
 initSize specifies an initial size for the list, which is useful as an optimization if you can estimate the length of the list before you construct it.
 SbPList (const SbPList &pl)
 Copy constructor.
 ~SbPList ()
 Destructor.
void append (void *ptr)
 Adds given pointer to end of list.
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found.
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index.
void remove (int which)
 Removes pointer with given index.
int getLength () const
 Returns number of pointers in list.
void truncate (int start)
 Removes all pointers after one with given index, inclusive.
void copy (const SbPList &pl)
 Copy a list.
SbPListoperator= (const SbPList &pl)
 Assignment operator; copies list into this list.
void *& operator[] (int i) const
 Returns pointer with given index.
int operator== (const SbPList &pl) const
 Equality and inequality operators.
int operator!= (const SbPList &pl) const
 Equality and inequality operators.
void * get (int i) const
 Internal versions of [] that do not check for bounds:
void set (int i, void *j)

Detailed Description

This class manages a dynamic list of generic void * pointers. This class allows random access, insertion, and removal.

Definition at line 78 of file SbPList.h.


Constructor & Destructor Documentation

SbPList::SbPList ( )
SbPList::SbPList ( int  initSize)
SbPList::SbPList ( const SbPList pl)
SbPList::~SbPList ( )

Member Function Documentation

void SbPList::append ( void *  ptr) [inline]
void SbPList::copy ( const SbPList pl)
int SbPList::find ( const void *  ptr) const

Referenced by SoAuditorList::remove().

void* SbPList::get ( int  i) const [inline]

Reimplemented in SoFieldList.

Definition at line 135 of file SbPList.h.

Referenced by SoFieldList::get().

int SbPList::getLength ( ) const [inline]

Reimplemented in SoAuditorList.

Definition at line 110 of file SbPList.h.

Referenced by SoChildList::traverse().

void SbPList::insert ( void *  ptr,
int  addBefore 
)
int SbPList::operator!= ( const SbPList pl) const [inline]

Definition at line 130 of file SbPList.h.

References TRUE.

SbPList& SbPList::operator= ( const SbPList pl) [inline]

Definition at line 120 of file SbPList.h.

int SbPList::operator== ( const SbPList pl) const [inline]

Definition at line 127 of file SbPList.h.

References FALSE.

void*& SbPList::operator[] ( int  i) const [inline]
void SbPList::remove ( int  which)

Reimplemented in SoAuditorList, SoChildList, and SoBaseList.

void SbPList::set ( int  i,
void *  j 
) [inline]

Definition at line 136 of file SbPList.h.


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