SbStringList(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– 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