man SbPList () - list of generic (void *) pointers

NAME

SbPList - list of generic (void *) pointers

INHERITS FROM

SbPList

SYNOPSIS

#include <Inventor/SbPList.h> Methods from class SbPList: c } c } SbPList()

c } c } SbPList(const SbPList &pl)

c } c } SbPList(int initSize)

c } c } ~SbPList()

c } c } append(void * ptr)

c } c } find(const void *ptr) const

c } c } insert(void *ptr, int addBefore)

c } c } remove(int which)

c } c } getLength() const

c } c } truncate(int start)

c } c } copy(const SbPList &pl)

c } c } operator =(const SbPList &pl)

c } c } operator [](int i) const

c } c } operator ==(const SbPList &pl) const

c } c } operator !=(const SbPList &pl) const

DESCRIPTION

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

METHODS

c } c } SbPList()

c } c } SbPList(const SbPList &pl)

c } c } SbPList(int initSize)

c } c } ~SbPList()

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. c } c } append(void * ptr)

Adds given pointer to end of list. c } c } find(const void *ptr) const

Returns index of given pointer in list, or -1 if not found. c } c } insert(void *ptr, int addBefore)

Inserts given pointer in list before pointer with given index. c } c } remove(int which)

Removes pointer with given index. c } c } getLength() const

Returns number of pointers in list. c } c } truncate(int start)

Removes all pointers after one with given index, inclusive. c } c } copy(const SbPList &pl)

Copy a list. c } c } operator =(const SbPList &pl)

Assignment operator; copies list into this list. c } c } operator [](int i) const

Returns pointer with given index. c } c } operator ==(const SbPList &pl) const

c } c } operator !=(const SbPList &pl) const

Equality and inequality operators.