Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoSensorList Class Reference

Maintains a list of SoSensor. More...

#include <Inventor/lists/SoSensorList.h>

+ Inheritance diagram for SoSensorList:

Public Member Functions

 SoSensorList ()
 Constructor.
 
 SoSensorList (int size)
 Constructor that pre-allocates storage for size pointers.
 
 SoSensorList (const SoSensorList &l)
 Constructor that copies the contents of another list.
 
virtual ~SoSensorList ()
 Destructor.
 
void append (SoSensor *ptr)
 Adds a pointer to the end of the list.
 
void insert (SoSensor *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index.
 
virtual void remove (int which)
 Removes pointer with given index.
 
virtual void truncate (int start)
 Removes all pointers after one with given index, inclusive.
 
void copy (const SoSensorList &l)
 Copies a list, keeping all reference counts correct.
 
SoSensorListoperator= (const SoSensorList &l)
 Copies a list, keeping all reference counts correct.
 
SoSensoroperator[] (int i) const
 Returns pointer with given index.
 
void set (int i, SoSensor *ptr)
 Sets an element of a list.
 
- Public Member Functions inherited from SbPList
 SbPList ()
 Default constructor.
 
 SbPList (int initSize)
 Constructor.
 
 SbPList (const SbPList &pl)
 Constructor.
 
virtual ~SbPList ()
 Destructor.
 
void append (void *ptr)
 Adds given pointer to end of list.
 
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found.
 
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index.
 
int getLength () const
 Returns number of pointers in list.
 
void copy (const SbPList &pl)
 Copies a list.
 
SbPListoperator= (const SbPList &pl)
 Assignment operator: copies list into this list.
 
void *& operator[] (const int index) const
 Returns pointer with given index.
 
int operator== (const SbPList &pl) const
 Equality operator.
 
int operator!= (const SbPList &pl) const
 Inequality operator.
 
void swap (int index1, int index2)
 Swaps element having index1 with the one having index2.
 

Detailed Description

Maintains a list of SoSensor.

This subclass of SbPList holds lists of SoSensor type identifiers.

SEE ALSO

SoSensor

Definition at line 71 of file SoSensorList.h.

Constructor & Destructor Documentation

◆ SoSensorList() [1/3]

SoSensorList::SoSensorList ( )

Constructor.

◆ SoSensorList() [2/3]

SoSensorList::SoSensorList ( int  size)

Constructor that pre-allocates storage for size pointers.

◆ SoSensorList() [3/3]

SoSensorList::SoSensorList ( const SoSensorList l)

Constructor that copies the contents of another list.

◆ ~SoSensorList()

virtual SoSensorList::~SoSensorList ( )
inlinevirtual

Destructor.

Definition at line 92 of file SoSensorList.h.

Member Function Documentation

◆ append()

void SoSensorList::append ( SoSensor ptr)

Adds a pointer to the end of the list.

◆ copy()

void SoSensorList::copy ( const SoSensorList l)

Copies a list, keeping all reference counts correct.

◆ insert()

void SoSensorList::insert ( SoSensor ptr,
int  addBefore 
)

Inserts given pointer in list before pointer with given index.

◆ operator=()

SoSensorList & SoSensorList::operator= ( const SoSensorList l)
inline

Copies a list, keeping all reference counts correct.

Definition at line 122 of file SoSensorList.h.

◆ operator[]()

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.

Definition at line 126 of file SoSensorList.h.

◆ remove()

virtual void SoSensorList::remove ( int  which)
virtual

Removes pointer with given index.

Reimplemented from SbPList.

◆ set()

void SoSensorList::set ( int  i,
SoSensor ptr 
)

Sets an element of a list.

◆ truncate()

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: