SbStringList(3)
π SbStringList(3) π
okay bestie, so this is a page from the Library Functions Manual, and it's literally all about the iconic SbStringList class. Coin version 3.1.3, if you were wondering. let's get into it π
β¨ NAME β¨
SbStringList β the SbStringList class is a container for arrays of SbString pointers. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
#include <Inventor/lists/SbStringList.h>
Inherits SbPList.
π«Ά Public Member Functions
SbStringList (void)
SbStringList (const int sizehint)
void append (SbString *string)
int find (SbString *string) const
void insert (SbString *string, int insertbefore)
SbString *& operator[] (const int idx) const
const SbString ** getArrayPtr (void) const
β Public Member Functions inherited from SbPList
SbPList (const int sizehint=DEFAULTSIZE)
SbPList (const SbPList &l)
~SbPList ()
void copy (const SbPList &l)
SbPList & operator= (const SbPList &l)
void fit (void)
void append (void *item)
int find (void *item) const
void insert (void *item, const int insertbefore)
void removeItem (void *item)
void remove (const int index)
void removeFast (const int index)
int getLength (void) const
void truncate (const int length, const int fit=0)
void ** getArrayPtr (const int start=0) const
void *& operator[] (const int index) const
int operator== (const SbPList &l) const
int operator!= (const SbPList &l) const
void * get (const int index) const
void set (const int index, void *item)
π Additional Inherited Members
π Protected Member Functions inherited from SbPList
void expand (const int size)
int getArraySize (void) const
π¦ DETAILED DESCRIPTION π¦
The SbStringList class is a container for arrays of SbString pointers. container queen behavior, honestly π
β οΈ heads up bestie: when you use the equality and inequality operators, the strings themselves are not compared β only the pointer values. so like, don't come for me when two identical-looking strings don't match. it's pointers only, no cap π
This class does not allocate or deallocate strings. It's the caller's responsibility to allocate/deallocate the SbString instances. so yes, you're the main character here and the memory management is your job π«‘
See also
SbPList
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
SbStringList::SbStringList (void ) [inline]
Default constructor. simple. clean. iconic. β¨
SbStringList::SbStringList (const int sizehint) [inline]
This constructor initializes the internal allocated size for the list to sizehint. note that the list will still initially contain zero items β so it's giving "I reserved space but I have no thoughts yet" energy π
See also
SPbList::SbList(const int sizehint)
π₯ MEMBER FUNCTION DOCUMENTATION π₯
int SbStringList::find (SbString * string) const [inline]
Overridden from the parent to accept an SbString argument. glow-up from the original fr fr β¨
void SbStringList::insert (SbString * string, int insertbefore) [inline]
Overridden from the parent to accept an SbString argument. same energy, SbString-flavored π
SbString *& SbStringList::operator[] (const int idx) const [inline]
Overridden from the parent to return an SbString pointer. you get a pointer, you get a pointer, everybody gets a pointer π
const SbString ** SbStringList::getArrayPtr (void ) const [inline]
Overridden from the parent to return an SbString pointer array. an entire array of SbString pointers, slay π
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. (not a human author, just a robot doing its little thing π€π)
and that's the whole page bestie!! no notes, 10/10, we ate and left no crumbs π β¨
this little manual page came to you from Coin, Version 3.1.3 β that's the source and the version, mwah, bye!! ππ¦π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms