SONODELIST(3iv)

πŸ’– NAME πŸ’–

SoNodeList β€” okay so literally, she maintains a list of pointers to nodes. That's the whole job. And she ate. πŸ’…βœ¨


πŸ¦‹ INHERITS FROM πŸ¦‹

SbPList > SoBaseList > SoNodeList

Not me showing you the whole family tree β€” she's giving generational wealth but make it C++ πŸ˜­πŸ‘‘


🌸 SYNOPSIS 🌸

#include <Inventor/SoLists.h>

✨ Methods from class SoNodeList ✨

                     SoNodeList()
                     SoNodeList(int size)
                     SoNodeList(const SoNodeList &l)
                     ~SoNodeList()
 void                append(SoNode *node)
 SoNode *            operator [](int i) const
 SoNodeList &        operator =(const SoNodeList &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

🌈 DESCRIPTION 🌈

This subclass of SoBaseList holds lists of pointers to SoNodes. And the way that she's so responsible? She updates reference counts to nodes in the list whenever adding or removing pointers. Lowkey the group chat moderator of memory management. Obsessed. πŸ«ΆπŸ’–


✨ METHODS ✨

  • SoNodeList() β€” constructor. She's born, bestie. Main character entrance. πŸ‘‘
  • SoNodeList(int size) β€” constructor that pre-allocates storage for size pointers. Planning ahead? We love a girl with a five-year plan. πŸ’…
  • SoNodeList(const SoNodeList &l) β€” constructor that copies the contents of another list. Twin energy fr fr. 🧚
  • ~SoNodeList() β€” destructor. She's logging off, but make it iconic. No notes. 😭✨
  • void append(SoNode *node) β€” adds a pointer to the end of the list. Adding one more to the roster, slay. πŸ’–
  • SoNode * operator [](int i) const β€” accesses an element of a list. Just peek inside, she won't bite. πŸ™ˆ
  • SoNodeList & operator =(const SoNodeList &l) β€” copies a list, keeping all reference counts correct. The way she stays accurate while copying? That's the vibe check passed. 🌸

πŸ‘€ SEE ALSO πŸ‘€

SoNode


And that's the whole page, bestie! Source/version tag: SoNodeList(3IV)(), and the date? Also SoNodeList(3IV)(). She's timeless, periodt. πŸ’œβœ¨