51#ifndef SO_SENSOR_LIST_H
52#define SO_SENSOR_LIST_H
54#include <Inventor/SbPList.h>
123 {
copy(l) ;
return *
this; }
127 {
return (
static_cast<SoSensor *
> ( (*
static_cast<const SbPList *
>(
this)) [i] ) ); }
List of generic (void *) pointers.
Abstract base class for Open Inventor sensors.
Maintains a list of SoSensor.
SoSensorList & operator=(const SoSensorList &l)
Copies a list, keeping all reference counts correct.
virtual ~SoSensorList()
Destructor.
virtual void remove(int which)
Removes pointer with given index.
virtual void truncate(int start)
Removes all pointers after one with given index, inclusive.
SoSensorList(const SoSensorList &l)
Constructor that copies the contents of another list.
void set(int i, SoSensor *ptr)
Sets an element of a list.
SoSensorList()
Constructor.
SoSensor * operator[](int i) const
Returns pointer with given index.
SoSensorList(int size)
Constructor that pre-allocates storage for size pointers.
void insert(SoSensor *ptr, int addBefore)
Inserts given pointer in list before pointer with given index.
void copy(const SoSensorList &l)
Copies a list, keeping all reference counts correct.
void append(SoSensor *ptr)
Adds a pointer to the end of the list.