.TH "SoTypeList" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoTypeList \- The \fBSoTypeList\fP class is a container class for arrays of \fBSoType\fP objects\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSbPList\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoTypeList\fP (void)" .br .ti -1c .RI "\fBSoTypeList\fP (const int sizehint)" .br .ti -1c .RI "\fBSoTypeList\fP (const \fBSoTypeList\fP &l)" .br .ti -1c .RI "void \fBappend\fP (const \fBSoType\fP type)" .br .ti -1c .RI "int \fBfind\fP (const \fBSoType\fP type) const" .br .ti -1c .RI "void \fBinsert\fP (const \fBSoType\fP type, const int insertbefore)" .br .ti -1c .RI "\fBSoType\fP \fBoperator[]\fP (const int idx) const" .br .ti -1c .RI "void \fBset\fP (const int index, const \fBSoType\fP item)" .br .in -1c Public Member Functions inherited from \fBSbPList\fP .in +1c .ti -1c .RI "\fBSbPList\fP (const int sizehint=DEFAULTSIZE)" .br .ti -1c .RI "\fBSbPList\fP (const \fBSbPList\fP &l)" .br .ti -1c .RI "\fB~SbPList\fP ()" .br .ti -1c .RI "void \fBcopy\fP (const \fBSbPList\fP &l)" .br .ti -1c .RI "\fBSbPList\fP & \fBoperator=\fP (const \fBSbPList\fP &l)" .br .ti -1c .RI "void \fBfit\fP (void)" .br .ti -1c .RI "void \fBappend\fP (void *item)" .br .ti -1c .RI "int \fBfind\fP (const void *item) const" .br .ti -1c .RI "void \fBinsert\fP (void *item, const int insertbefore)" .br .ti -1c .RI "void \fBremoveItem\fP (void *item)" .br .ti -1c .RI "void \fBremove\fP (const int index)" .br .ti -1c .RI "void \fBremoveFast\fP (const int index)" .br .ti -1c .RI "int \fBgetLength\fP (void) const" .br .ti -1c .RI "void \fBtruncate\fP (const int length, const int \fBfit\fP=0)" .br .ti -1c .RI "void ** \fBgetArrayPtr\fP (const int start=0) const" .br .ti -1c .RI "void *& \fBoperator[]\fP (const int index) const" .br .ti -1c .RI "int \fBoperator==\fP (const \fBSbPList\fP &l) const" .br .ti -1c .RI "int \fBoperator!=\fP (const \fBSbPList\fP &l) const" .br .ti -1c .RI "void * \fBget\fP (const int index) const" .br .ti -1c .RI "void \fBset\fP (const int index, void *item)" .br .in -1c .SS "Additional Inherited Members" Protected Member Functions inherited from \fBSbPList\fP .in +1c .ti -1c .RI "void \fBexpand\fP (const int size)" .br .ti -1c .RI "int \fBgetArraySize\fP (void) const" .br .in -1c .SH "Detailed Description" .PP The \fBSoTypeList\fP class is a container class for arrays of \fBSoType\fP objects\&. .PP \fBSee also\fP .RS 4 \fBSbList\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoTypeList::SoTypeList (void )\fR [inline]\fP" Default constructor\&. .SS "SoTypeList::SoTypeList (const int sizehint)\fR [inline]\fP" This constructor initializes the internal allocated size for the list to \fIsizehint\fP\&. Note that the list will still initially contain zero items\&. .PP \fBSee also\fP .RS 4 \fBSbList::SbList(const int sizehint)\fP .RE .PP .SS "SoTypeList::SoTypeList (const \fBSoTypeList\fP & l)\fR [inline]\fP" Copy constructor\&. .PP \fBSee also\fP .RS 4 \fBSbList::SbList(const SbList & l)\fP .RE .PP .SH "Member Function Documentation" .PP .SS "void SoTypeList::append (const \fBSoType\fP type)" Append \fIitem\fP to the end of the list\&. .PP Automatically allocates more items internally if needed\&. .PP Overloaded from parent to accept an \fBSoType\fP pointer argument\&. .PP \fBSee also\fP .RS 4 \fBSbPList::append()\fP .RE .PP .SS "int SoTypeList::find (const \fBSoType\fP type) const" Return index of first occurrence of \fIitem\fP in the list, or -1 if \fIitem\fP is not present\&. .PP Overloaded from parent to accept an \fBSoType\fP argument\&. .PP \fBSee also\fP .RS 4 \fBSbPList::find()\fP .RE .PP .SS "void SoTypeList::insert (const \fBSoType\fP type, const int insertbefore)" Insert \fIitem\fP at index \fIinsertbefore\fP\&. .PP \fIinsertbefore\fP should not be larger than the current number of items in the list\&. .PP Overloaded from parent to accept an \fBSoType\fP argument\&. .PP \fBSee also\fP .RS 4 \fBSbPList::insert()\fP .RE .PP .SS "\fBSoType\fP SoTypeList::operator[] (const int idx) const" Returns element at \fIindex\fP\&. .PP Will automatically expand the size of the internal array if \fIindex\fP is outside the current bounds of the list\&. The values of any additional pointers are then set to \fRNULL\fP\&. .PP Overloaded from parent to return an \fBSoType\fP instance\&. .PP \fBSee also\fP .RS 4 \fBSbPList::operator[]()\fP .RE .PP .SS "void SoTypeList::set (const int index, const \fBSoType\fP item)" Index operator to set element at \fIindex\fP\&. Does \fInot\fP expand array bounds if \fIindex\fP is outside the list\&. .PP Overloaded from parent to accept an \fBSoType\fP argument\&. .PP \fBSee also\fP .RS 4 \fBSbPList::set()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.