.TH "SoPathList" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoPathList \- The \fBSoPathList\fP class is a container for pointers to \fBSoPath\fP objects\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoBaseList\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoPathList\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBSoPathList\fP (\fBconst\fP int size)" .br .ti -1c .RI "\fBSoPathList\fP (\fBconst\fP \fBSoPathList\fP &\fBpl\fP)" .br .ti -1c .RI "\fB~SoPathList\fP ()" .br .ti -1c .RI "\fBvoid\fP \fBappend\fP (\fBSoPath\fP *\fBconst\fP path)" .br .ti -1c .RI "\fBSoPath\fP * \fBoperator[]\fP (\fBconst\fP int \fBi\fP) \fBconst\fP" .br .ti -1c .RI "\fBSoPathList\fP & \fBoperator=\fP (\fBconst\fP \fBSoPathList\fP &\fBpl\fP)" .br .ti -1c .RI "int \fBfindPath\fP (\fBconst\fP \fBSoPath\fP &path) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsort\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBuniquify\fP (\fBvoid\fP)" .br .in -1c Public Member Functions inherited from \fBSoBaseList\fP .in +1c .ti -1c .RI "\fBSoBaseList\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBSoBaseList\fP (\fBconst\fP int size)" .br .ti -1c .RI "\fBSoBaseList\fP (\fBconst\fP \fBSoBaseList\fP &\fBl\fP)" .br .ti -1c .RI "\fB~SoBaseList\fP ()" .br .ti -1c .RI "\fBvoid\fP \fBappend\fP (\fBSoBase\fP *ptr)" .br .ti -1c .RI "\fBvoid\fP \fBinsert\fP (\fBSoBase\fP *ptr, \fBconst\fP int \fBaddbefore\fP)" .br .ti -1c .RI "\fBvoid\fP \fBremove\fP (\fBconst\fP int index)" .br .ti -1c .RI "\fBvoid\fP \fBremoveItem\fP (\fBSoBase\fP *\fBitem\fP)" .br .ti -1c .RI "\fBvoid\fP \fBtruncate\fP (\fBconst\fP int length)" .br .ti -1c .RI "\fBvoid\fP \fBcopy\fP (\fBconst\fP \fBSoBaseList\fP &\fBl\fP)" .br .ti -1c .RI "\fBSoBaseList\fP & \fBoperator=\fP (\fBconst\fP \fBSoBaseList\fP &\fBl\fP)" .br .ti -1c .RI "\fBSoBase\fP * \fBoperator[]\fP (\fBconst\fP int \fBi\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBset\fP (\fBconst\fP int \fBi\fP, \fBSoBase\fP *\fBconst\fP ptr)" .br .ti -1c .RI "\fBvoid\fP \fBaddReferences\fP (\fBconst\fP SbBool \fBflag\fP)" .br .ti -1c .RI "SbBool \fBisReferencing\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c Public Member Functions inherited from \fBSbPList\fP .in +1c .ti -1c .RI "\fBSbPList\fP (\fBconst\fP int \fBsizehint\fP=DEFAULTSIZE)" .br .ti -1c .RI "\fBSbPList\fP (\fBconst\fP \fBSbPList\fP &\fBl\fP)" .br .ti -1c .RI "\fB~SbPList\fP ()" .br .ti -1c .RI "\fBvoid\fP \fBcopy\fP (\fBconst\fP \fBSbPList\fP &\fBl\fP)" .br .ti -1c .RI "\fBSbPList\fP & \fBoperator=\fP (\fBconst\fP \fBSbPList\fP &\fBl\fP)" .br .ti -1c .RI "\fBvoid\fP \fBfit\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBappend\fP (\fBvoid\fP *\fBitem\fP)" .br .ti -1c .RI "int \fBfind\fP (\fBconst\fP \fBvoid\fP *\fBitem\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBinsert\fP (\fBvoid\fP *\fBitem\fP, \fBconst\fP int \fBinsertbefore\fP)" .br .ti -1c .RI "\fBvoid\fP \fBremoveItem\fP (\fBvoid\fP *\fBitem\fP)" .br .ti -1c .RI "\fBvoid\fP \fBremove\fP (\fBconst\fP int index)" .br .ti -1c .RI "\fBvoid\fP \fBremoveFast\fP (\fBconst\fP int index)" .br .ti -1c .RI "int \fBgetLength\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBtruncate\fP (\fBconst\fP int length, \fBconst\fP int \fBfit\fP=0)" .br .ti -1c .RI "\fBvoid\fP ** \fBgetArrayPtr\fP (\fBconst\fP int start=0) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP *& \fBoperator[]\fP (\fBconst\fP int index) \fBconst\fP" .br .ti -1c .RI "int \fBoperator==\fP (\fBconst\fP \fBSbPList\fP &\fBl\fP) \fBconst\fP" .br .ti -1c .RI "int \fBoperator!=\fP (\fBconst\fP \fBSbPList\fP &\fBl\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP * \fBget\fP (\fBconst\fP int index) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBset\fP (\fBconst\fP int index, \fBvoid\fP *\fBitem\fP)" .br .in -1c .SS "Additional Inherited Members" Protected Member Functions inherited from \fBSbPList\fP .in +1c .ti -1c .RI "\fBvoid\fP \fBexpand\fP (\fBconst\fP int size)" .br .ti -1c .RI "int \fBgetArraySize\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoPathList\fP class is a container for pointers to \fBSoPath\fP objects\&. As this class inherits \fBSoBaseList\fP, referencing and dereferencing will default be done on the objects at \fBappend()\fP, \fBremove()\fP, \fBinsert()\fP etc\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoPathList::SoPathList (\fBvoid\fP)" Default constructor\&. .SS "SoPathList::SoPathList (\fBconst\fP int size)" Constructor with a hint about the number of elements the list will hold\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::SoBaseList(const int)\fP .RE .PP .SS "SoPathList::SoPathList (\fBconst\fP \fBSoPathList\fP & pl)" Copy constructor\&. .PP Does a shallow copy of the \fBSoPath\fP pointer values, but updates reference count\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::SoBaseList(const SoBaseList &)\fP .RE .PP .SS "SoPathList::~SoPathList ()" Destructor\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::~SoBaseList()\fP .RE .PP .SH "Member Function Documentation" .PP .SS "\fBvoid\fP SoPathList::append (\fBSoPath\fP *\fBconst\fP path)" Append \fIptr\fP to the list\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::append()\fP .RE .PP .SS "\fBSoPath\fP * SoPathList::operator[] (\fBconst\fP int i) const" Return node pointer at index \fIi\fP\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::operator[]()\fP .RE .PP .SS "\fBSoPathList\fP & SoPathList::operator= (\fBconst\fP \fBSoPathList\fP & pl)" Shallow copy of contents of list \fIpl\fP to this list\&. .PP \fBSee also\fP .RS 4 \fBSoBaseList::operator=()\fP .RE .PP .SS "int SoPathList::findPath (\fBconst\fP \fBSoPath\fP & path) const" Find and return index of first item equal to \fIpath\fP\&. .SS "\fBvoid\fP SoPathList::sort (\fBvoid\fP)" Sort paths in list according to how early they are run into when traversing the scene graph\&. .SS "\fBvoid\fP SoPathList::uniquify (\fBvoid\fP)" Removes identical paths and paths that go through the tail of another path\&. .PP Note that this method assumes the list to be in a sorted order\&. .PP \fBSee also\fP .RS 4 \fBsort()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.