The sobaselist class is a container for pointers to sobase derived objects. the additional capability of the sobaselist class over its parent class, sbplist, is to automatically handle referencing and dereferencing of items as they are added or removed from the lists.
#include <Inventor/lists/SoBaseList.h>
Inherits SbPList.
Inherited by SoEngineList, SoNodeList, and SoPathList.
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
The SoBaseList class is a container for pointers to SoBase derived objects.
The additional capability of the SoBaseList class over its parent class, SbPList, is to automatically handle referencing and dereferencing of items as they are added or removed from the lists.
Default constructor.
Constructor with a hint about the maximum number of pointers in the list.
See also:
SbPList::SbPList(const int)
Copy constructor.
Shallow copy the items of l into this list, adding to the item reference counts if the reference flag of l is TRUE.
See also:
SbPList::SbPList(const SbPList &)
Destructor. Dereferences items before freeing resources.
Append ptr to list, adding to the reference count of the object (unless addReferences() has been set to FALSE).
See also:
SbPList::append()
Insert ptr in the list at position addbefore, adding to the reference count of the object (unless addReferences() has been set to FALSE).
See also:
SbPList::insert()
Removes item at index from the list, dereferencing the object (unless addReferences() has been set to FALSE).
See also:
SbPList::remove()
Removes item from the list, dereferencing the object (unless addReferences() has been set to FALSE).
See also:
SbPList::removeItem()
Makes the list contain only the length first items, removing all items from index length and onwards to the end of the list. Dereferences the objects to be removed (unless addReferences() has been set to FALSE).
See also:
SbPList::truncate()
Shallow copy of the item pointers of l list into this one, first removing all items in this list.
Shallow copy of the SoBase pointers from l into this one, returning a pointer to ourself.
See also:
copy()
Returns element at idx.
Will automatically expand the size of the internal array if idx is outside the current bounds of the list. The values of any additional pointers are then set to NULL.
Index operator to set element at i. Does not expand array bounds if i is outside the list.
Decide whether or not the SoBase items should be automatically referenced and dereferenced as they are added and removed from the list.
Default setting is to do referencing.
Return whether the SoBase instances are automatically referenced and dereferenced when they are added and removed from the list.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also:
addReferences()
Since:
Coin 2.0
Generated automatically by Doxygen for Coin from the source code.