Open Inventor Reference
SoTypeList Class Reference

Maintains a list of SoTypes. More...

#include <Inventor/SoLists.h>

Inheritance diagram for SoTypeList:
SbPList

Public Member Functions

 SoTypeList ()
 
 SoTypeList (int size)
 
 SoTypeList (const SoTypeList &l)
 
 ~SoTypeList ()
 Destructor. More...
 
void append (SoType typeId)
 Adds a type to the end of the list. More...
 
int find (SoType typeId) const
 Returns index of given type in list, or -1 if not found. More...
 
void insert (SoType typeId, int addBefore)
 Inserts given type in list before type with given index. More...
 
SoType operator[] (int i) const
 Access an element of a list. More...
 
void set (int i, SoType typeId)
 Sets an element of a list. More...
 
- Public Member Functions inherited from SbPList
 SbPList ()
 Constructor. More...
 
 SbPList (int initSize)
 initSize specifies an initial size for the list, which is useful as an optimization if you can estimate the length of the list before you construct it. More...
 
 SbPList (const SbPList &pl)
 Copy constructor. More...
 
 ~SbPList ()
 Destructor. More...
 
void append (void *ptr)
 Adds given pointer to end of list. More...
 
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found. More...
 
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index. More...
 
void remove (int which)
 Removes pointer with given index. More...
 
int getLength () const
 Returns number of pointers in list. More...
 
void truncate (int start)
 Removes all pointers after one with given index, inclusive. More...
 
void copy (const SbPList &pl)
 Copy a list. More...
 
SbPListoperator= (const SbPList &pl)
 Assignment operator; copies list into this list. More...
 
void *& operator[] (int i) const
 Returns pointer with given index. More...
 
bool operator== (const SbPList &pl) const
 Equality and inequality operators. More...
 
bool operator!= (const SbPList &pl) const
 Equality and inequality operators. More...
 
void * get (int i) const
 Internal versions of [] that do not check for bounds: More...
 
void set (int i, void *j)
 

Detailed Description

This subclass of SbPList holds lists of SoType type identifiers.

See Also
SoType

Definition at line 295 of file SoLists.h.

Constructor & Destructor Documentation

◆ SoTypeList() [1/3]

SoTypeList::SoTypeList ( )
inline

Definition at line 297 of file SoLists.h.

◆ SoTypeList() [2/3]

SoTypeList::SoTypeList ( int  size)
inline

Definition at line 298 of file SoLists.h.

◆ SoTypeList() [3/3]

SoTypeList::SoTypeList ( const SoTypeList l)
inline

Definition at line 299 of file SoLists.h.

◆ ~SoTypeList()

SoTypeList::~SoTypeList ( )
inline

Definition at line 301 of file SoLists.h.

References SbPList::truncate().

Member Function Documentation

◆ append()

void SoTypeList::append ( SoType  typeId)

◆ find()

int SoTypeList::find ( SoType  typeId) const

◆ insert()

void SoTypeList::insert ( SoType  typeId,
int  addBefore 
)

◆ operator[]()

SoType SoTypeList::operator[] ( int  i) const

◆ set()

void SoTypeList::set ( int  i,
SoType  typeId 
)

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