SOTYPELIST(3iv)

✨ SoTypeList ✨

okay bestie, welcome to SoTypeList from the 3IV manual β€” she maintains a list of SoTypes πŸ’… and honestly? she ate.


🫢 INHERITS FROM

SbPList > SoTypeList

so she's an SbPList girlie first, SoTypeList icon second πŸ‘‘


🌸 SYNOPSIS

#include <Inventor/SoLists.h>

Methods from class SoTypeList:

              SoTypeList()
              SoTypeList(int size)
              SoTypeList(const SoTypeList &l)
              ~SoTypeList()
void          append(SoType type)
void          insert(SoType *type, int addBefore)
void          set(int i, SoType *type)
int           find(SoType typeId) const
SoType        operator [](int i) const

Methods from class SbPList:

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

This subclass of SbPList holds lists of SoType type identifiers. that's the whole vibe fr fr β€” she's a SbPList with type-id energy πŸ¦‹


πŸŽ€ METHODS

SoTypeList()

Constructor. new list, who dis ✨

SoTypeList(int size)

Constructor that pre-allocates storage for size types. she's getting ready in advance, lowkey iconic 🌈

SoTypeList(const SoTypeList &l)

Constructor that copies the contents of another list. twin behavior πŸ’œ

~SoTypeList()

Destructor. she's leaving the group chat 😭

void append(SoType type)

Adds a type to the end of the list. always at the back, never cutting the line πŸ’…

void insert(SoType *type, int addBefore)

Inserts given type in list before type with given index. squeezing into the friend group at exactly the right spot 🫢

void set(int i, SoType *type)

Sets an element of a list. slot i, you're up ⭐

int find(SoType typeId) const

Returns index of given typeId in list, or -1 if not found. and if she's not there? -1, no cap πŸ’€

SoType operator [](int i) const

Accesses an element of a list. square brackets, main character energy πŸ”₯


πŸ‘‘ SEE ALSO

SoType


and that's the whole page bestie!! written by the SoTypeList(3IV) girlies, SoTypeList(3IV)() energy all the way through, dated and versioned exactly like the original footer said β€” mwah, periodt πŸ’–βœ¨πŸŽ€