SoTypeList Class Reference

Maintains a list of SoTypes. More...

#include <Inventor/lists/SoTypeList.h>

Inheritance diagram for SoTypeList:

List of all members.

Public Member Functions

 SoTypeList ()
 SoTypeList (int size)
 SoTypeList (const SoTypeList &l)
virtual ~SoTypeList ()
void append (SoType typeId)
int find (SoType typeId) const
void insert (SoType typeId, int addBefore)
SoType operator[] (int i) const
void set (int i, SoType typeId)

Detailed Description

Maintains a list of SoTypes.

This subclass of SbPList holds lists of SoType type identifiers.



Constructor & Destructor Documentation

SoTypeList::SoTypeList (  )  [inline]


SoTypeList::SoTypeList ( int  size  )  [inline]

Constructor that pre-allocates storage for size types.

SoTypeList::SoTypeList ( const SoTypeList l  )  [inline]

Constructor that copies the contents of another list.

virtual SoTypeList::~SoTypeList (  )  [inline, virtual]


Member Function Documentation

void SoTypeList::append ( SoType  typeId  ) 

Adds a type to the end of the list.

int SoTypeList::find ( SoType  typeId  )  const

Returns index of given type in list, or -1 if not found.

void SoTypeList::insert ( SoType  typeId,
int  addBefore 

Inserts given type in list before type with given index.

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

Returns pointer with given index. If requested index does not exists, list is grown to return a valid pointer.

Reimplemented from SbPList.

void SoTypeList::set ( int  i,
SoType  typeId 

Sets an element of a list.

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

Open Inventor Toolkit reference manual, generated on 1 Nov 2022
Copyright © Thermo Fisher Scientific All rights reserved.