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

SoBaseList — maintains a list of pointers to instances of the SoBase classes

Description

       This subclass of SbPList holds lists of pointers to instances of classes derived from SoBase (an abstract
       class).  A  flag  indicates  whether adding an instance pointer to the list should add a reference to the
       instance.  If this flag is TRUE, then adding and removing pointers from the list updates reference counts
       in the corresponding instances.

Inherits From

       SbPList > SoBaseList

Methods

SoBaseList()
          Constructor.

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

                         SoBaseList(constSoBaseList&l)
          Constructor that copies the contents of another list.

                         ~SoBaseList()
          Destructor.

     voidappend(SoBase*ptr)
          Adds a pointer to the end of the list.

     voidinsert(SoBase*ptr,intaddBefore)
          Inserts given pointer in list before pointer with given index.

     voidremove(intwhich)
          Removes pointer with given index.

     voidtruncate(intstart)
          Removes all pointers after one with given index, inclusive.

     voidcopy(constSoBaseList&l)
          Copies a list, keeping all reference counts correct.

     SoBaseList&operator=(constSoBaseList&l)
          Copies a list, keeping all reference counts correct.

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

     voidset(inti,SoBase*ptr)
          Sets an element of a list.

     voidaddReferences(SbBoolflag)
          Indicates whether to call ref() and unref() for bases in  the  list  when  adding/removing  them.  The
          default value is TRUE.

Name

       SoBaseList — maintains a list of pointers to instances of the SoBase classes

See Also

SoBase,SoNodeList,SoPathListSoBaseList(3IV)()

Synopsis

#include<Inventor/SoLists.h>

          Methods from class SoBaseList:

                         SoBaseList()SoBaseList(intsize)SoBaseList(constSoBaseList&l)~SoBaseList()voidappend(SoBase*ptr)voidinsert(SoBase*ptr,intaddBefore)voidremove(intwhich)voidtruncate(intstart)voidcopy(constSoBaseList&l)SoBaseList&operator=(constSoBaseList&l)SoBase*operator[](inti)constvoidset(inti,SoBase*ptr)voidaddReferences(SbBoolflag)

          Methods from class SbPList:

     intfind(constvoid*ptr)constintgetLength()constintoperator==(constSbPList&pl)constintoperator!=(constSbPList&pl)const

See Also