logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoDetailList — maintains a list of instances of details

Description

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

Inherits From

       SbPList > SoDetailList

Methods

SoDetailList()
          Constructor.

                         SoDetailList(intsize)
          Constructor that pre-allocates storage for size pointers.

                         SoDetailList(constSoDetailList&l)
          Constructor that copies the contents of another list.

                         ~SoDetailList()
          Destructor.

     voidappend(SoDetail*detail)
          Adds a detail to the end of the list.

     voidinsert(SoDetail*detail,intaddBefore)
          Inserts given detail in list before detail with given index.

     voidtruncate(intstart)
          Removes all details after one with given index, inclusive. Removed detail instances are deleted.

     voidcopy(constSoDetailList&l)
          Copies a list, making a copy of each detail instance in the list.

     SoDetailList&operator=(constSoDetailList&l)
          Copies a list, making a copy of each detail instance in the list.

     SoDetail*operator[](inti)const
          Accesses an element of a list.

     voidset(inti,SoDetail*detail)
          Sets an element of a list, deleting the old entry first.

Name

       SoDetailList — maintains a list of instances of details

See Also

SoDetailSoDetailList(3IV)()

Synopsis

#include<Inventor/SoLists.h>

          Methods from class SoDetailList:

                         SoDetailList()SoDetailList(intsize)SoDetailList(constSoDetailList&l)~SoDetailList()voidappend(SoDetail*detail)voidinsert(SoDetail*detail,intaddBefore)voidtruncate(intstart)voidcopy(constSoDetailList&l)SoDetailList&operator=(constSoDetailList&l)SoDetail*operator[](inti)constvoidset(inti,SoDetail*detail)

          Methods from class SbPList:

     intfind(constvoid*ptr)constvoidremove(intwhich)intgetLength()constintoperator==(constSbPList&pl)constintoperator!=(constSbPList&pl)const

See Also