SbStringList(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

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