SbStringList(3)
π SbStringList(3) π
okay so bestie, welcome to the Coin manual, section 3, and today's main character is SbStringList. grab a snack, this one's actually cute. π
β¨ NAME β¨
SbStringList β the SbStringList class is a container for pointers to SbString objects.
β¨ SYNOPSIS β¨
#include <Innventor/lists/SbStringList.h>
wait no. let me not do that. it's literally:
#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 (const 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 pointers to SbString objects. that's it. that's the whole job. she holds pointers, she's lowkey just a list with a glow-up. π
β οΈ bestie heads up: when you use the equality and inequality operators, the strings themselves are not compared β only the pointer values. so two different SbString objects with the exact same text will NOT read as equal. no cap. don't come for me, that's just how she is. π
β οΈ also: this class does not allocate or deallocate strings. it's the caller's responsibility to allocate/deallocate the SbString instances. she is a container, not a babysitter. she will not clean up after you. periodt. π«Ά
See also
SbPList
π Constructor & Destructor Documentation π
SbStringList::SbStringList (void ) [inline]
Default constructor. she's born. 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 β she's got room, but she's not filled yet. main character with an empty calendar energy. π
See also
SPbList::SbList(const int sizehint)
π Member Function Documentation π
void SbStringList::append (SbString * string) [inline]
Append item to the end of the list. she goes at the back, no cutting the line. π
Automatically allocates more items internally if needed β she'll expand for you, don't even stress.
Overloaded from parent to accept an SbString pointer argument.
See also
SbPList::append()
int SbStringList::find (SbString * string) const [inline]
Return index of first occurrence of item in the list, or -1 if item is not present. so like, if she's in there, you get her number; if not, -1 and you move on. π
Overloaded from parent to accept an SbString pointer argument.
See also
SbPList::find()
void SbStringList::insert (SbString * string, int insertbefore) [inline]
Insert item at index insertbefore.
insertbefore should not be larger than the current number of items in the list. fr fr, don't do it.
Overloaded from parent to accept an SbString pointer argument.
See also
SbPList::insert()
SbString *& SbStringList::operator[] (const int idx) const [inline]
Returns element at index.
Will automatically expand the size of the internal array if index is outside the current bounds of the list. The values of any additional pointers are then set to NULL. so she grows, but the new spots are empty β NULL, bestie, not vibes. β¨
Overloaded from parent to return an SbString pointer.
See also
SbPList::operator[]()
const SbString ** SbStringList::getArrayPtr (void ) const [inline]
Returns pointer to a non-modifiable array of the lists elements. start specifies an index into the array.
The caller is not responsible for freeing up the array, as it is just a pointer into the internal array used by the list. so like, do NOT free it. hands off. she owns that array. π
Overloaded from parent to return an SbString pointer array.
See also
SbPList::getArrayPtr()
π Author π
Generated automatically by Doxygen for Coin from the source code. yeah, a robot wrote this. she's still slaying though. π€β¨
and that's the whole page, bestie!! you read all of it, ate and left no crumbs ππ
Version 4.0.10 β dated Thu Jun 25 2026 00:00:00, and it's the SbStringList(3) page, so like... go forth and hold those pointers responsibly. bye bye!! ππ¦ππ
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms