SOENGINEOUTPUTLIST(3iv)

✨ SoEngineOutputList ✨

okay bestie, welcome to the SoEngineOutputList(3IV) page πŸ’– this one's a lil niche but it's lowkey iconic β€” it's the girl who keeps a list of pointers to engine outputs. yes. that's her whole job. and she does it flawlessly πŸ’…


🌸 NAME 🌸

SoEngineOutputList β€” maintains a list of pointers to engine outputs πŸŽ€

πŸ¦‹ INHERITS FROM πŸ¦‹

SbPList > SoEngineOutputList

so she's a glow-up of SbPList, she inherited the whole vibe and then added her own thing. main character energy fr ✨

πŸ’œ SYNOPSIS πŸ’œ

#include <Inventor/SoLists.h>

okay so here's what she brings to the table, starting with her very own methods:

                    SoEngineOutputList()
                    SoEngineOutputList(int size)
                    SoEngineOutputList(const SoEngineOutputList &l)
                    ~SoEngineOutputList()
void                append(SoEngineOutput *engineOutput)
void                insert(SoEngineOutput *engineOutput, int addBefore)
void                set(int i, SoEngineOutput *engineOutput)
SoEngineOutput *    operator [](int i) const

and then the ones she got from her mother, 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 SoEngineOutputs. and here's the important part, no cap: she updates reference counts to engine outputs in the list whenever adding or removing pointers. so she's not just holding your pointers, she's being responsible about it. the way that she actually manages the refcounts?? obsessed 🫢

πŸŽ€ METHODS πŸŽ€

  • SoEngineOutputList() β€” the constructor, bestie. she exists now πŸ’…
  • SoEngineOutputList(int size) β€” constructor that pre-allocates storage for size pointers. she's manifesting space ahead of time, as she should ✨
  • SoEngineOutputList(const SoEngineOutputList &l) β€” constructor that copies the contents of another list. twin behavior 🧚
  • ~SoEngineOutputList() β€” the destructor. she's leaving the group chat, but she's cleaning up on her way out 😭
  • void append(SoEngineOutput *engineOutput) β€” adds an engine output to the end of the list. she goes last, always, that's just the rule πŸ’…
  • void insert(SoEngineOutput *engineOutput, int addBefore) β€” inserts the given engine output in the list before the element of the given index. she cuts the line but politely πŸŽ€
  • void set(int i, SoEngineOutput *engineOutput) β€” sets an element of a list. swapping out the fit at index i πŸ”₯
  • SoEngineOutput * operator [](int i) const β€” accesses an element of a list. peek inside, iykyk πŸ‘‘

okay and just so we're clear: int i and int addBefore and int size are all placeholders β€” you're passing your own values in, not those literal words πŸ’€

🌈 SEE ALSO 🌈

  • SoEngineOutput

and that's the whole page bestie, no cap, you ate it πŸ’– so <pink>SoEngineOutputList(3IV)</pink> with no date attached β€” that's the footer, that's the version stamp, that's the little signature at the bottom of the page, and honestly? iconic. periodt πŸŽ€βœ¨πŸ¦‹