Open Inventor Reference
SoDetailList Class Reference

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

#include <Inventor/SoLists.h>

Inheritance diagram for SoDetailList:
SbPList

List of all members.

Public Member Functions

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

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::SoDetailList ( ) [inline]

Definition at line 335 of file SoLists.h.

SoDetailList::SoDetailList ( int  size) [inline]

Definition at line 336 of file SoLists.h.

SoDetailList::SoDetailList ( const SoDetailList l)
SoDetailList::~SoDetailList ( ) [inline]

Definition at line 340 of file SoLists.h.

References SbPList::truncate().


Member Function Documentation

void SoDetailList::append ( SoDetail detail) [inline]

Definition at line 343 of file SoLists.h.

References SbPList::append().

void SoDetailList::copy ( const SoDetailList l)
void SoDetailList::insert ( SoDetail detail,
int  addBefore 
) [inline]

Definition at line 347 of file SoLists.h.

References SbPList::insert().

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

Definition at line 357 of file SoLists.h.

References SbPList::copy().

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

Reimplemented from SbPList.

Definition at line 361 of file SoLists.h.

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

Removed detail instances are deleted.

Reimplemented from SbPList.


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