54#include <Inventor/SbPList.h>
55#include <Inventor/misc/SoBase.h>
56#include <Inventor/sensors/SoListSensor.h>
130 {
copy(l) ;
return *
this; }
134 {
return (
static_cast<SoBase*
> ( (*
static_cast<const SbPList *
>(
this) ) [i] ) ); }
172 if (m_notificationInfo)
173 return m_notificationInfo->m_auditors;
182 if (m_notificationInfo)
183 return m_notificationInfo->m_changedIndex;
192 if (m_notificationInfo)
193 return m_notificationInfo->m_changedType;
202 if (m_notificationInfo)
204 m_notificationInfo->m_changedIndex = changedIndex;
205 m_notificationInfo->m_changedType = changedType;
215 class SoNotificationInfo
219 SoNotificationInfo();
221 ~SoNotificationInfo();
223 SoAuditorList *m_auditors;
233 bool getAddReferencesStatus() {
return addRefs; }
240 SoNotificationInfo *m_notificationInfo;
List of generic (void *) pointers.
Base class for all nodes, paths, and engines.
Maintains a list of pointers to instances of the SoBase classes.
void copy(const SoBaseList &l)
Copies a list, keeping all reference counts correct.
SoBaseList(int size)
Constructor that pre-allocates storage for size pointers.
void insert(SoBase *ptr, int addBefore)
Inserts given pointer in list before pointer with given index.
void addReferences(SbBool flag)
Indicates whether to call ref() and unref() for bases in the list when adding/removing them.
int getChangedIndex() const
Get last changed index element of the list.
SoListSensor::ChangeType getChangedType() const
Get last changed type of the list.
SoBase * operator[](int i) const
Returns pointer with given index.
void set(int i, SoBase *ptr)
Sets an element of a list.
void touch(int index=-1)
Forces each attached SoListSensor to be notified.
SoBaseList(const SoBaseList &l)
Constructor that copies the contents of another list.
virtual void truncate(int start)
Removes all pointers after one with given index, inclusive.
virtual void remove(int which)
Removes pointer with given index.
const SoAuditorList * getAuditors() const
Get current auditor list.
virtual ~SoBaseList()
Destructor.
void setNotificationInfo(const int changedIndex, const SoListSensor::ChangeType changedType)
setup notification info for auditor mechanism.
SoBaseList & operator=(const SoBaseList &l)
Copies a list, keeping all reference counts correct.
void addAuditor(void *auditor, SoNotRec::Type type)
Add an auditor to the list.
void removeAuditor(void *auditor, SoNotRec::Type type)
Remove an auditor to the list.
void append(SoBase *ptr)
Adds a pointer to the end of the list.
@ UNSPECIFIED
Unspecified change.