Open Inventor Reference
SoAuditorList Class Reference

SoAuditorList class. More...

#include <Inventor/misc/SoAuditorList.h>

Inheritance diagram for SoAuditorList:
SbPList

Public Member Functions

 SoAuditorList ()
 Constructor and destructor. More...
 
 ~SoAuditorList ()
 
void append (void *auditor, SoNotRec::Type type)
 Adds an auditor of the given type to the list. More...
 
void set (int index, void *auditor, SoNotRec::Type type)
 Sets auditor and type for given index. More...
 
int find (void *auditor, SoNotRec::Type type) const
 Finds an auditor in the list, returning the index or -1 if not found. More...
 
int findLast (void *auditor, SoNotRec::Type type) const
 Finds an auditor in the list, starting from the end, returning the index or -1 if not found. More...
 
void * getObject (int index) const
 Returns object or type for given index. More...
 
SoNotRec::Type getType (int index) const
 
void remove (int index)
 Removes an auditor from the list. More...
 
void remove (void *auditor, SoNotRec::Type type)
 
int getLength () const
 Returns number of auditors in list. More...
 
void notify (SoNotList *list)
 Propagates notification to all auditors in list. More...
 

Detailed Description

This class maintains a list of instances that audit (receive notification from) an SoBase or SoField. Each entry in the list consists of a pointer to the auditor (base or field) instance and a type code of type SoNotRec::Type.

The type of the auditor object pointer depends on the type code, as follows:

Type code:      Auditor object pointer:

CONTAINER       The SoFieldContainer containing the field
PARENT          The parent node
SENSOR          The SoDataSensor instance
FIELD           The destination field instance
ENGINE          The destination field instance

Since there are two entries in the underlying SbPList for each auditor, some of these methods have to do some fancy footwork.

Definition at line 87 of file SoAuditorList.h.

Constructor & Destructor Documentation

◆ SoAuditorList()

SoAuditorList::SoAuditorList ( )

◆ ~SoAuditorList()

SoAuditorList::~SoAuditorList ( )

Member Function Documentation

◆ append()

void SoAuditorList::append ( void *  auditor,
SoNotRec::Type  type 
)

◆ find()

int SoAuditorList::find ( void *  auditor,
SoNotRec::Type  type 
) const

◆ findLast()

int SoAuditorList::findLast ( void *  auditor,
SoNotRec::Type  type 
) const

◆ getLength()

int SoAuditorList::getLength ( ) const

◆ getObject()

void* SoAuditorList::getObject ( int  index) const

◆ getType()

SoNotRec::Type SoAuditorList::getType ( int  index) const

◆ notify()

void SoAuditorList::notify ( SoNotList list)

◆ remove() [1/2]

void SoAuditorList::remove ( int  index)

◆ remove() [2/2]

void SoAuditorList::remove ( void *  auditor,
SoNotRec::Type  type 
)
inline

Definition at line 112 of file SoAuditorList.h.

References SbPList::find(), and SbPList::remove().

◆ set()

void SoAuditorList::set ( int  index,
void *  auditor,
SoNotRec::Type  type 
)

The documentation for this class was generated from the following file: