SOENGINELIST(3iv)

πŸ’– SoEngineList β€” it's giving "list of engine pointers" πŸ’–

okay bestie, welcome to SoEngineList(3IV), the manual page you didn't know you needed. sit down, grab a boba, we're doing pointers to engines today and honestly? iconic. πŸŽ€


✨ NAME ✨

SoEngineList β€” maintains a list of pointers to engines πŸ¦‹

like... it's a list. of pointers. to engines. that's the whole vibe. no cap.


🌸 INHERITS FROM 🌸

SbPList > SoBaseList > SoEngineList

so it's got the whole family tree going on β€” it inherited from SbPList, which passed its genes to SoBaseList, which passed them to SoEngineList. generational talent fr fr πŸ‘‘


✨ SYNOPSIS ✨

first things first, you gotta include the header, no skipping:

#include <Inventor/SoLists.h>

🫢 Methods from class SoEngineList:

                    SoEngineList()
                    SoEngineList(int size)
                    SoEngineList(const SoEngineList &l)
                    ~SoEngineList()
void                append(SoEngine *engine)
SoEngine *          operator [](int i) const
SoEngineList &      operator =(const SoEngineList &l)

🫢 Methods from class SoBaseList:

void                insert(SoBase *ptr, int addBefore)
void                remove(int which)
void                truncate(int start)
void                copy(const SoBaseList &l)
void                set(int i, SoBase *ptr)
void                addReferences(SbBool flag)

🫢 Methods from class SbPList:

int                 find(const void *ptr) const
int                 getLength() const
int                 operator ==(const SbPList &pl) const
int                 operator !=(const SbPList &pl) const

look at all those inherited methods, they really said "family heirlooms" πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: this subclass of SoBaseList holds lists of pointers to SoEngines. and the way that it updates reference counts to engines in the list whenever you add or remove pointers?? that's the whole personality. it's keeping track so you don't have to. main character energy, honestly. πŸ”₯


🌈 METHODS 🌈

  • SoEngineList() β€” Constructor. the classic. the original. no notes. ✨
  • SoEngineList(int size) β€” Constructor that pre-allocates storage for size pointers. it's like reserving your table before the group chat even shows up πŸ“
  • SoEngineList(const SoEngineList &l) β€” Constructor that copies the contents of another list. twin behavior, literally πŸ‘―
  • ~SoEngineList() β€” Destructor. it's giving closure. it's giving goodbye. it's giving cleanup 😭
  • void append(SoEngine *engine) β€” Adds an engine to the end of the list. go to the back of the line bestie, respectfully πŸŽ€
  • SoEngine * operator [](int i) const β€” Accesses an element of a list. you want index i? say less πŸ’…
  • SoEngineList & operator =(const SoEngineList &l) β€” Copies a list, keeping all reference counts correct. no broken counts, no drama, we stay accurate 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

SoEngine

go check that one out too, it's the whole reason this list exists, iykyk πŸ’–


reminder bestie: this page is SoEngineList(3IV)(), and yes, it's the same title at the top and the bottom β€” the manual said "bookends" and honestly? slay.

and that's a wrap!! πŸŽ€ the source/version is SoEngineList(3IV) and the date slot is empty, which is lowkey mysterious of it but we respect the silence. mwah, bye!! πŸ’œβœ¨