Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoEngineOutputList Class Reference

Maintains a list of pointers to engine outputs. More...

#include <Inventor/lists/SoEngineOutputList.h>

+ Inheritance diagram for SoEngineOutputList:

Public Member Functions

 SoEngineOutputList ()
 Constructor.
 
 SoEngineOutputList (int size)
 Constructor that pre-allocates storage for size pointers.
 
 SoEngineOutputList (const SoEngineOutputList &l)
 Constructor that copies the contents of another list.
 
virtual ~SoEngineOutputList ()
 Destructor.
 
void append (SoEngineOutput *engineOutput)
 Adds an engine output to the end of the list.
 
void insert (SoEngineOutput *engineOutput, int addBefore)
 Inserts the given engine output in the list before the element of the given index.
 
SoEngineOutputoperator[] (int i) const
 Returns pointer with given index.
 
void set (int i, SoEngineOutput *engineOutput)
 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.
 
virtual void remove (int which)
 Removes pointer with given index.
 
int getLength () const
 Returns number of pointers in list.
 
virtual void truncate (int start)
 Removes all pointers after one with given index, inclusive.
 
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 pointers to engine outputs.

This subclass of SbPList holds lists of pointers to SoEngineOutputs. It updates reference counts to engine outputs in the list whenever adding or removing pointers.

SEE ALSO

SoEngineOutput

Definition at line 72 of file SoEngineOutputList.h.

Constructor & Destructor Documentation

◆ SoEngineOutputList() [1/3]

SoEngineOutputList::SoEngineOutputList ( )
inline

Constructor.

Definition at line 78 of file SoEngineOutputList.h.

◆ SoEngineOutputList() [2/3]

SoEngineOutputList::SoEngineOutputList ( int  size)
inline

Constructor that pre-allocates storage for size pointers.

Definition at line 83 of file SoEngineOutputList.h.

◆ SoEngineOutputList() [3/3]

SoEngineOutputList::SoEngineOutputList ( const SoEngineOutputList l)
inline

Constructor that copies the contents of another list.

Definition at line 88 of file SoEngineOutputList.h.

◆ ~SoEngineOutputList()

virtual SoEngineOutputList::~SoEngineOutputList ( )
inlinevirtual

Destructor.

Definition at line 93 of file SoEngineOutputList.h.

Member Function Documentation

◆ append()

void SoEngineOutputList::append ( SoEngineOutput engineOutput)
inline

Adds an engine output to the end of the list.

Definition at line 98 of file SoEngineOutputList.h.

◆ insert()

void SoEngineOutputList::insert ( SoEngineOutput engineOutput,
int  addBefore 
)
inline

Inserts the given engine output in the list before the element of the given index.

Definition at line 105 of file SoEngineOutputList.h.

◆ operator[]()

SoEngineOutput * SoEngineOutputList::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 109 of file SoEngineOutputList.h.

◆ set()

void SoEngineOutputList::set ( int  i,
SoEngineOutput engineOutput 
)
inline

Sets an element of a list.

Definition at line 115 of file SoEngineOutputList.h.


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