SOFIELDLIST(3iv)
π SoFieldList β the manual page, but make it cute π
okay bestie, gather round, because we're doing SoFieldList(3IV) and honestly? it's giving β¨organizedβ¨. this little cutie maintains a list of pointers to fields. that's it. that's the whole vibe. no cap.
πΈ INHERITS FROM πΈ
SbPList > SoFieldList
so yeah, she's a SbPList girlie at heart, but with a glow-up π
β¨ SYNOPSIS β¨
first things first, you gotta bring her in:
#include <Inventor/SoLists.h>
π Methods from class SoFieldList
SoFieldList()
SoFieldList(int size)
SoFieldList(const SoFieldList &l)
~SoFieldList()
void append(SoField *ptr)
void insert(SoField *ptr, int addBefore)
SoField * operator [](int i) const
void set(int i, SoField *field)
π¦ Methods from class SbPList
int find(const void *ptr) const
void remove(int which)
int getLength() const
void truncate(int start)
void copy(const SbPList &pl)
SbPList & operator =(const SbPList &pl)
int operator ==(const SbPList &pl) const
int operator !=(const SbPList &pl) const
π DESCRIPTION π
so, like, this subclass of SbPList holds lists of pointers to instances of classes derived from SoField. that's the tea π. she's a list, she holds pointers, the pointers point at SoField-derived stuff. iconic behavior, honestly.
π₯ METHODS π₯
SoFieldList()
Constructor. the classic no-args entrance. main character energy from the jump π
SoFieldList(int size)
Constructor that pre-allocates storage for size pointers. so if you already know how many besties are coming to the party, tell her up front and she'll save the seats πͺβ¨
SoFieldList(const SoFieldList &l)
Constructor that copies the contents of another list. clone her. twin. she's not copying you, she's copying you π
~SoFieldList()
Destructor. she's leaving, she said what she said, bye ππ
void append(SoField *ptr)
Adds a pointer to the end of the list. just line up at the back, babe, there's room π«Ά
void insert(SoField *ptr, int addBefore)
Inserts given pointer in list before pointer with given index. so not at the end β she's cutting the line, but legally π and yeah, it goes before the one at index addBefore.
SoField * operator [](int i) const
Accesses an element of a list. the classic [i] moment. reach in, grab your girl, no notes π
void set(int i, SoField *field)
Sets an element of a list. swap her out at index i, put field in her place. glow-up in progress π
π SEE ALSO π
SoField
and that's the whole page, bestie!! π shoutout to the source/version line and date at the bottom β it's SoFieldList(3IV)() energy, the little signature that says yeah, this was me, i wrote this π
stay hydrated, keep your pointers valid, mwah ππ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms