Open Inventor Reference
SoAuditorList Class Reference

SoAuditorList class. More...

#include <Inventor/misc/SoAuditorList.h>

Inheritance diagram for SoAuditorList:
SbPList

List of all members.

Public Member Functions

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

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 ( )

Member Function Documentation

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

Reimplemented from SbPList.

void* SoAuditorList::getObject ( int  index) const
SoNotRec::Type SoAuditorList::getType ( int  index) const
void SoAuditorList::notify ( SoNotList list)
void SoAuditorList::remove ( int  index)

Reimplemented from SbPList.

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

Definition at line 109 of file SoAuditorList.h.

References SbPList::find().

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

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