SoDetailList Class Reference
[Details]

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

#include <Inventor/lists/SoDetailList.h>

Inheritance diagram for SoDetailList:
SbPList

List of all members.

Public Member Functions

 SoDetailList ()
 SoDetailList (int size)
 SoDetailList (const SoDetailList &l)
virtual ~SoDetailList ()
void append (SoDetail *detail)
void insert (SoDetail *detail, int addBefore)
virtual void truncate (int start)
void copy (const SoDetailList &l)
SoDetailListoperator= (const SoDetailList &l)
SoDetailoperator[] (int i) const
void set (int i, SoDetail *detail)

Detailed Description

Maintains a list of instances of details.

This subclass of SbPList holds lists of instances of classes derived from SoDetail.

SEE ALSO

SoDetail


Constructor & Destructor Documentation

SoDetailList::SoDetailList (  )  [inline]

Constructor.

SoDetailList::SoDetailList ( int  size  )  [inline]

Constructor that pre-allocates storage for size pointers.

SoDetailList::SoDetailList ( const SoDetailList l  ) 

Constructor that copies the contents of another list.

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

Destructor.


Member Function Documentation

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

Adds a detail to the end of the list.

void SoDetailList::copy ( const SoDetailList l  ) 

Copies a list, making a copy of each detail instance in the list.

Reimplemented from SbPList.

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

Inserts given detail in list before detail with given index.

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

Copies a list, making a copy of each detail instance in the list.

Reimplemented from SbPList.

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

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

Reimplemented from SbPList.

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

Sets an element of a list, deleting the old entry first.

virtual void SoDetailList::truncate ( int  start  )  [virtual]

Removes all details after one with given index, inclusive.

Removed detail instances are deleted.

Reimplemented from SbPList.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/