Maintains a list of SoSensor. More...
#include <Inventor/lists/SoSensorList.h>
Public Member Functions | |
| SoSensorList () | |
| SoSensorList (int size) | |
| SoSensorList (const SoSensorList &l) | |
| virtual | ~SoSensorList () |
| void | append (SoSensor *ptr) |
| void | insert (SoSensor *ptr, int addBefore) |
| virtual void | remove (int which) |
| virtual void | truncate (int start) |
| void | copy (const SoSensorList &l) |
| SoSensorList & | operator= (const SoSensorList &l) |
| SoSensor * | operator[] (int i) const |
| void | set (int i, SoSensor *ptr) |
Maintains a list of SoSensor.
This subclass of SbPList holds lists of SoSensor type identifiers.
| SoSensorList::SoSensorList | ( | ) |
Constructor.
| SoSensorList::SoSensorList | ( | int | size | ) |
Constructor that pre-allocates storage for size pointers.
| SoSensorList::SoSensorList | ( | const SoSensorList & | l | ) |
Constructor that copies the contents of another list.
| virtual SoSensorList::~SoSensorList | ( | ) | [inline, virtual] |
Destructor.
| void SoSensorList::append | ( | SoSensor * | ptr | ) |
Adds a pointer to the end of the list.
| void SoSensorList::copy | ( | const SoSensorList & | l | ) |
Copies a list, keeping all reference counts correct.
Reimplemented from SbPList.
| void SoSensorList::insert | ( | SoSensor * | ptr, | |
| int | addBefore | |||
| ) |
Inserts given pointer in list before pointer with given index.
| SoSensorList& SoSensorList::operator= | ( | const SoSensorList & | l | ) | [inline] |
Copies a list, keeping all reference counts correct.
Reimplemented from SbPList.
| SoSensor* SoSensorList::operator[] | ( | int | i | ) | const [inline] |
Returns pointer with given index. If requested index does not exists, list is grown to return a valid pointer.
Reimplemented from SbPList.
| virtual void SoSensorList::remove | ( | int | which | ) | [virtual] |
Removes pointer with given index.
Reimplemented from SbPList.
| void SoSensorList::set | ( | int | i, | |
| SoSensor * | ptr | |||
| ) |
Sets an element of a list.
| virtual void SoSensorList::truncate | ( | int | start | ) | [virtual] |
Removes all pointers after one with given index, inclusive.
Reimplemented from SbPList.