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

SoPathList — maintains a list of pointers to paths

Description

       This  subclass  of SoBaseList holds lists of pointers to SoPaths. It updates reference counts to paths in
       the list whenever adding or removing pointers.

Inherits From

       SbPList > SoBaseList > SoPathList

Methods

SoPathList()
          Constructor.

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

                         SoPathList(constSoPathList&l)
          Constructor that copies the contents of another list.

                         ~SoPathList()
          Destructor.

     voidappend(SoPath*path)
          Adds a path to the end of the list.

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

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

     intfindPath(constSoPath&path)
          Returns the index of the matching path in the list, or -1 if not found.

     voidsort()
          Sorts list in place based on (1) increasing address of head  node,  then  (2)  increasing  indices  of
          children.

     voiduniquify()
          Given  a sorted list, removes any path that (1) is a duplicate, or (2) goes through a node that is the
          tail of another path.

Name

       SoPathList — maintains a list of pointers to paths

See Also

SoPathSoPathList(3IV)()

Synopsis

#include<Inventor/SoLists.h>

          Methods from class SoPathList:

                         SoPathList()SoPathList(intsize)SoPathList(constSoPathList&l)~SoPathList()voidappend(SoPath*path)SoPath*operator[](inti)constSoPathList&operator=(constSoPathList&l)intfindPath(constSoPath&path)voidsort()voiduniquify()

          Methods from class SoBaseList:

     voidinsert(SoBase*ptr,intaddBefore)voidremove(intwhich)voidtruncate(intstart)voidcopy(constSoBaseList&l)voidset(inti,SoBase*ptr)voidaddReferences(SbBoolflag)

          Methods from class SbPList:

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

See Also