SbPList(3IV)NAMESbPList (SbPList) - list of generic (void *) pointers
INHERITS FROMSbPListSYNOPSIS
#include <Inventor_c/SbPList.h>
Functions from class SbPList:
SbPList * SbPListCreate()SbPList * SbPListCreateN(int initSize)
void SbPListDelete(SbPList *this)
void SbPListAppend(SbPList *this, void * ptr)
int SbPListFind(const SbPList *this, const void *ptr)
void SbPListInsert(SbPList *this, void *ptr, int
addBefore)
void SbPListRemove(SbPList *this, int which)
int SbPListGetLen(const SbPList *this)
void SbPListTruncate(SbPList *this, int start)
void SbPListCopy(SbPList *this, const SbPList *pl)
void ** SbPListUnknownOperator(const SbPList *this, int i)
int SbPListIsEq(const SbPList *this, const SbPList *pl)
int SbPListIsNEq(const SbPList *this, const SbPList *pl)
DESCRIPTION
This class manages a dynamic list of generic void * pointers. This class
allows random access, insertion, and removal.
FUNCTIONSSbPList * SbPListCreate()SbPList * SbPListCreateN(int initSize)
void SbPListDelete(SbPList *this)
Constructors and destructor. 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. If another SbPList is
given, it returns a copy of that list.
void SbPListAppend(SbPList *this, void * ptr)
Adds given pointer to end of list.
int SbPListFind(const SbPList *this, const void *ptr)
Returns index of given pointer in list, or -1 if not found.
void SbPListInsert(SbPList *this, void *ptr, int
addBefore)
Inserts given pointer in list before pointer with given index.
void SbPListRemove(SbPList *this, int which)
Removes pointer with given index.
Page 1SbPList(3IV)
int SbPListGetLen(const SbPList *this)
Returns number of pointers in list.
void SbPListTruncate(SbPList *this, int start)
Removes all pointers after one with given index, inclusive.
void SbPListCopy(SbPList *this, const SbPList *pl)
Copy a list.
void ** SbPListUnknownOperator(const SbPList *this, int i)
Returns pointer with given index.
int SbPListIsEq(const SbPList *this, const SbPList *pl)
int SbPListIsNEq(const SbPList *this, const SbPList *pl)
Equality and inequality operators.
FILE FORMAT/DEFAULTS
PList {
}
Page 2