| 
    Open Inventor Reference
    
   | 
 
List of generic (void *) pointers. More...
#include <Inventor/SbPList.h>
  
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.   | |
| SbPList & | operator= (const SbPList &pl) | 
| Assignment operator; copies list into this list.   | |
| void *& | operator[] (int i) const | 
| Returns pointer with given index.   | |
| bool | operator== (const SbPList &pl) const | 
| Equality and inequality operators.   | |
| bool | 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) | 
This class manages a dynamic list of generic void * pointers. This class allows random access, insertion, and removal. 
| SbPList::SbPList | ( | ) | 
Referenced by SbIntList::append(), SbStringList::append(), SbVec3fList::append(), copy(), SbIntList::find(), SbStringList::find(), SbIntList::insert(), SbStringList::insert(), SbVec3fList::insert(), operator!=(), operator=(), operator==(), SbIntList::operator[](), SbStringList::operator[](), SbVec3fList::operator[](), SoActionMethodList::operator[](), SoBaseList::operator[](), SoDetailList::operator[](), SoEngineOutputList::operator[](), SoFieldList::operator[](), SoPickedPointList::operator[](), SbIntList::SbIntList(), SbPList(), SoEngineOutputList::set(), SoFieldList::set(), SoDetailList::SoDetailList(), SoDetailList::SoDetailList(), SoEngineOutputList::SoEngineOutputList(), SoEngineOutputList::SoEngineOutputList(), SoEngineOutputList::SoEngineOutputList(), SoFieldList::SoFieldList(), SoFieldList::SoFieldList(), SoFieldList::SoFieldList(), SoPickedPointList::SoPickedPointList(), SoPickedPointList::SoPickedPointList(), SoTypeList::SoTypeList(), SoTypeList::SoTypeList(), and SoTypeList::SoTypeList().
| SbPList::SbPList | ( | int | initSize | ) | 
| SbPList::~SbPList | ( | ) | 
      
  | 
  inline | 
Definition at line 96 of file SbPList.h.
Referenced by SoDetailList::append(), SoEngineOutputList::append(), SoFieldList::append(), and SoPickedPointList::append().
| void SbPList::copy | ( | const SbPList & | pl | ) | 
References SbPList().
Referenced by operator=(), SoBaseList::operator=(), and SoDetailList::operator=().
| int SbPList::find | ( | const void * | ptr | ) | const | 
Referenced by SoAuditorList::remove().
      
  | 
  inline | 
Definition at line 135 of file SbPList.h.
Referenced by SoFieldList::get().
      
  | 
  inline | 
Definition at line 110 of file SbPList.h.
Referenced by SoChildList::traverse().
| void SbPList::insert | ( | void * | ptr, | 
| int | addBefore ) | 
Referenced by SoDetailList::insert(), SoEngineOutputList::insert(), SoFieldList::insert(), and SoPickedPointList::insert().
      
  | 
  inline | 
      
  | 
  inline | 
| void SbPList::remove | ( | int | which | ) | 
Referenced by SoAuditorList::remove().
      
  | 
  inline | 
Definition at line 113 of file SbPList.h.
Referenced by SoBaseList::~SoBaseList(), SoDetailList::~SoDetailList(), SoEngineOutputList::~SoEngineOutputList(), SoFieldList::~SoFieldList(), SoPickedPointList::~SoPickedPointList(), and SoTypeList::~SoTypeList().