SoNodeList(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ¦‹ SoNodeList πŸ¦‹

okay bestie, sit down, hydrate, because this is the manual page for SoNodeList, and it lives in section 3 β€” the Library Functions Manual, which is literally where all the library-function girlies hang out. it's giving reference page energy and we are obsessed. πŸ’…


✨ NAME ✨

SoNodeList β€” the class that is a container for pointers to SoNode objects. that's it, that's the whole vibe. a little list. of node pointers. iconic behavior honestly. πŸŽ€


🌸 SYNOPSIS 🌸

#include <Inventor/lists/SoNodeList.h>
  • Inherits SoBaseList.
  • Inherited by SoChildList.

so it's part of a whole little family tree, and the family is big. 🧚

πŸ’œ Public Member Functions πŸ’œ

  • SoNodeList (void) β€” the default constructor
  • SoNodeList (const int size) β€” constructor with a size hint
  • SoNodeList (const SoNodeList &nl) β€” copy constructor
  • ~SoNodeList () β€” destructor
  • void append (SoNode *const ptr) β€” appends a node pointer
  • SoNode * operator[] (const int i) const β€” grabs the node pointer at an index
  • SoNodeList & operator= (const SoNodeList &nl) β€” assignment operator

🌈 Public Member Functions inherited from SoBaseList 🌈

  • SoBaseList (void)
  • SoBaseList (const int size)
  • SoBaseList (const SoBaseList &l)
  • ~SoBaseList ()
  • void append (SoBase *ptr)
  • void insert (SoBase *ptr, const int addbefore)
  • void remove (const int index)
  • void removeItem (SoBase *item)
  • void truncate (const int length)
  • void copy (const SoBaseList &l)
  • SoBaseList & operator= (const SoBaseList &l)
  • SoBase * operator[] (const int i) const
  • void set (const int i, SoBase *const ptr)
  • void addReferences (const SbBool flag)
  • SbBool isReferencing (void) const

🫢 Public Member Functions inherited from SbPList 🫢

  • SbPList (const int sizehint=DEFAULTSIZE)
  • SbPList (const SbPList &l)
  • ~SbPList ()
  • void copy (const SbPList &l)
  • SbPList & operator= (const SbPList &l)
  • void fit (void)
  • void append (void *item)
  • int find (void *item) const
  • void insert (void *item, const int insertbefore)
  • void removeItem (void *item)
  • void remove (const int index)
  • void removeFast (const int index)
  • int getLength (void) const
  • void truncate (const int length, const int fit=0)
  • void ** getArrayPtr (const int start=0) const
  • void *& operator[] (const int index) const
  • int operator== (const SbPList &l) const
  • int operator!= (const SbPList &l) const
  • void * get (const int index) const
  • void set (const int index, void *item)

⭐ Additional Inherited Members ⭐

🧡 Protected Member Functions inherited from SbPList 🧡

  • void expand (const int size)
  • int getArraySize (void) const

πŸ”₯ Detailed Description πŸ”₯

SoNodeList is a container for pointers to SoNode objects. periodt. πŸ’–

and here's the tea bestie: because this class inherits SoBaseList, referencing and dereferencing will default be done on the objects at append(), remove(), insert() etc. so it's not just holding random pointers and ghosting them β€” it's doing the reference bookkeeping for you. main character energy fr fr. πŸ‘‘


πŸ’– Constructor & Destructor Documentation πŸ’–

SoNodeList::SoNodeList (void )

Default constructor. simple, classic, no notes. ✨

Referenced by operator=(), SoChildList::SoChildList(), SoChildList::SoChildList(), SoChildList::SoChildList(), and SoNodeList().

yes bestie, SoChildList::SoChildList() really does show up three separate times in that list. i did not stutter, and neither did the original. 😭

SoNodeList::SoNodeList (const int size)

Constructor with a hint about the number of elements the list will hold.

See also

  • SoBaseList::SoBaseList(const int)

References SoBaseList::SoBaseList().

SoNodeList::SoNodeList (const SoNodeList & nl)

Copy constructor. making a lil twin of an existing list, we love to see it. πŸ¦‹

See also

  • SoBaseList::SoBaseList(const SoBaseList &)

References SoBaseList::SoBaseList(), and SoNodeList().

SoNodeList::~SoNodeList ()

Destructor. saying bye bye, cleaning up, closing the group chat. πŸŽ€

See also

  • SoBaseList::~SoBaseList()

🌸 Member Function Documentation 🌸

void SoNodeList::append (SoNode *const ptr)

Append ptr to the list. just yeeting that node pointer onto the end, respectfully. πŸ’…

See also

  • SoBaseList::append()

References SoBaseList::append().

Referenced by SoChildList::append(), SoNode::getByName(), and SoBaseKit::readInstance().

SoNode * SoNodeList::operator[] (const int i) const

Return node pointer at index i. you ask for i, you get i. no cap. ⭐

See also

  • SoBaseList::operator[]()

References SoBaseList::operator[]().

Referenced by SoChildList::remove(), and SoChildList::set().

SoNodeList & SoNodeList::operator= (const SoNodeList & nl)

Copy contents of list nl to this list. full glow-up transplant, contents edition. πŸ’–

See also

  • SoBaseList::operator=()

References SoBaseList::copy(), and SoNodeList().


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. not a human bestie, a robot did this, and honestly? it ate. πŸ”₯


and that's the whole page, babes 🫢 β€” this one came from Coin, Version 2.5.0, and it's filed under SoNodeList(3). slay, stay hydrated, and go read your headers. πŸ’œπŸŒˆ

πŸ“¦ where this page comes from