SbStringList(3)
π SbStringList π
hiii bestie, welcome to the Library Functions Manual entry for SbStringList β yes it's a C++ class, yes it's from Coin, and yes we're gonna get through it together. grab a snack. π
πΈ NAME πΈ
SbStringList β the SbStringList class is a container for arrays of SbString pointers. that's it, that's the whole job. iconic honestly. π
β¨ 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
like, she's not doing this alone, she's got a whole parent class feeding her. here's everything she inherits:
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
these ones are the backstage crew, protected, not for just anybody:
void expand (const int size)
int getArraySize (void) const
π¦ DETAILED DESCRIPTION π¦
The SbStringList class is a container for arrays of SbString pointers. periodt. π
ngl, there's a catch β when you use the equality and inequality operators, the strings themselves are not compared. only the pointer values. so like, two different SbStrings with the exact same text? not equal to each other here. pointer vibes only, iykyk. π
also super important: this class does not allocate or deallocate strings. it's the caller's responsibility to allocate/deallocate the SbString instances. she's just holding the receipts, not paying the bills. π§
See also
SbPList
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
SbStringList::SbStringList (void ) [inline]
Default constructor. the classic no-args moment, she's born empty and ready. β¨
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 booked, but nobody's shown up to the party yet. π
See also
SPbList::SbList(const int sizehint)
References SbPList::SbPList().
π MEMBER FUNCTION DOCUMENTATION π
int SbStringList::find (SbString * string) const [inline]
Overridden from parent to accept an SbString argument. so she's doing the family thing but in her own font. π
References SbPList::find().
void SbStringList::insert (SbString * string, int insertbefore) [inline]
Overridden from parent to accept an SbString argument. same energy, different type. π₯
References SbPList::insert().
Referenced by SoInput::findFile().
SbString *& SbStringList::operator[] (const int idx) const [inline]
Overridden from parent to return an SbString pointer. so you get a pointer back, not whatever the parent was handing out. glow up. π
References SbPList::SbPList().
const SbString ** SbStringList::getArrayPtr (void ) const [inline]
Overridden from parent to return an SbString pointer array. yes, a whole array of pointers, as a treat. π
References SbPList::getArrayPtr().
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. not a human, just a robot doing its little bestie duties fr fr. π€
okay that's the whole page bestie, we ate and left no crumbs π
β¨ this was Coin, Version 2.5.0, the SbStringList(3) page, and that's a wrap β mwah, see you in the next manpage! πππ¦
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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