SoSensorList Class Reference
[General]

Maintains a list of SoSensor. More...

#include <Inventor/lists/SoSensorList.h>

Inheritance diagram for SoSensorList:
SbPList

List of all members.

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)
SoSensorListoperator= (const SoSensorList &l)
SoSensoroperator[] (int i) const
void set (int i, SoSensor *ptr)

Detailed Description

Maintains a list of SoSensor.

This subclass of SbPList holds lists of SoSensor type identifiers.

SEE ALSO

SoSensor


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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

Open Inventor Toolkit reference manual, generated on 8 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/