Open Inventor Reference
SoDetailList Class Reference

Maintains a list of instances of details. More...

#include <Inventor/SoLists.h>

Inheritance diagram for SoDetailList:
SbPList

Public Member Functions

 SoDetailList ()
 
 SoDetailList (int size)
 
 SoDetailList (const SoDetailList &l)
 Constructor that copies the contents of another list. More...
 
 ~SoDetailList ()
 Destructor. More...
 
void append (SoDetail *detail)
 Adds a detail to the end of the list. More...
 
void insert (SoDetail *detail, int addBefore)
 Inserts given detail in list before detail with given index. More...
 
void truncate (int start)
 Removes all details after one with given index, inclusive. More...
 
void copy (const SoDetailList &l)
 Copies a list, making a copy of each detail instance in the list. More...
 
SoDetailListoperator= (const SoDetailList &l)
 Copies a list, making a copy of each detail instance in the list. More...
 
SoDetailoperator[] (int i) const
 Access an element of a list. More...
 
void set (int i, SoDetail *detail)
 Sets an element of a list, deleting the old entry first. 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 instances of classes derived from SoDetail.

See Also
SoDetail

Definition at line 333 of file SoLists.h.

Constructor & Destructor Documentation

◆ SoDetailList() [1/3]

SoDetailList::SoDetailList ( )
inline

Definition at line 335 of file SoLists.h.

◆ SoDetailList() [2/3]

SoDetailList::SoDetailList ( int  size)
inline

Definition at line 336 of file SoLists.h.

◆ SoDetailList() [3/3]

SoDetailList::SoDetailList ( const SoDetailList l)

◆ ~SoDetailList()

SoDetailList::~SoDetailList ( )
inline

Definition at line 340 of file SoLists.h.

References SbPList::truncate().

Member Function Documentation

◆ append()

void SoDetailList::append ( SoDetail detail)
inline

Definition at line 343 of file SoLists.h.

References SbPList::append().

◆ copy()

void SoDetailList::copy ( const SoDetailList l)

◆ insert()

void SoDetailList::insert ( SoDetail detail,
int  addBefore 
)
inline

Definition at line 347 of file SoLists.h.

References SbPList::insert().

◆ operator=()

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

Definition at line 357 of file SoLists.h.

References SbPList::copy().

◆ operator[]()

SoDetail* SoDetailList::operator[] ( int  i) const
inline

Definition at line 361 of file SoLists.h.

◆ set()

void SoDetailList::set ( int  i,
SoDetail detail 
)

◆ truncate()

void SoDetailList::truncate ( int  start)

Removed detail instances are deleted.


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