Open Inventor Reference
SbIntList Class Reference

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

#include <Inventor/SbPList.h>

Inheritance diagram for SbIntList:
SbPList

Public Member Functions

 SbIntList ()
 Constructors, similar to SbPList. More...
 
 SbIntList (int initSize)
 
void append (int integer)
 Adds given pointer to end of list. More...
 
int find (int integer)
 Returns index of given pointer in list, or -1 if not found. More...
 
void insert (int integer, int addBefore)
 Inserts given pointer in list before pointer with given index. More...
 
int & operator[] (int i) const
 
- Public Member Functions inherited from SbPList
 SbPList ()
 Constructor. More...
 
 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. More...
 
 SbPList (const SbPList &pl)
 Copy constructor. More...
 
 ~SbPList ()
 Destructor. More...
 
void append (void *ptr)
 Adds given pointer to end of list. More...
 
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found. More...
 
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index. More...
 
void remove (int which)
 Removes pointer with given index. More...
 
int getLength () const
 Returns number of pointers in list. More...
 
void truncate (int start)
 Removes all pointers after one with given index, inclusive. More...
 
void copy (const SbPList &pl)
 Copy a list. More...
 
SbPListoperator= (const SbPList &pl)
 Assignment operator; copies list into this list. More...
 
void *& operator[] (int i) const
 Returns pointer with given index. More...
 
bool operator== (const SbPList &pl) const
 Equality and inequality operators. More...
 
bool operator!= (const SbPList &pl) const
 Equality and inequality operators. More...
 
void * get (int i) const
 Internal versions of [] that do not check for bounds: More...
 
void set (int i, void *j)
 

Detailed Description

SbIntList allows random access, insertion, and removal.

Definition at line 173 of file SbPList.h.

Constructor & Destructor Documentation

◆ SbIntList() [1/2]

SbIntList::SbIntList ( )
inline

Definition at line 177 of file SbPList.h.

◆ SbIntList() [2/2]

SbIntList::SbIntList ( int  initSize)
inline

Definition at line 178 of file SbPList.h.

Member Function Documentation

◆ append()

void SbIntList::append ( int  integer)
inline

Definition at line 181 of file SbPList.h.

Referenced by SoLightweightPath::append().

◆ find()

int SbIntList::find ( int  integer)
inline

Definition at line 185 of file SbPList.h.

◆ insert()

void SbIntList::insert ( int  integer,
int  addBefore 
)
inline

Definition at line 189 of file SbPList.h.

◆ operator[]()

int& SbIntList::operator[] ( int  i) const
inline

Definition at line 192 of file SbPList.h.


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