50#ifndef _SO_CALLBACK_LIST_
51#define _SO_CALLBACK_LIST_
List of generic (void *) pointers.
virtual void truncate(int start)
Removes all pointers after one with given index, inclusive.
int getLength() const
Returns number of pointers in list.
Manages a list of callbacks and associated data.
void addCallback(SoCallbackListCB *f, void *userData=NULL)
Adds a function to the list of callback functions.
void clearCallbacks()
Clears all callback functions from the list.
int getNumCallbacks() const
Returns the number of callback functions in the list.
~SoCallbackList()
Destructor.
SoCallbackList()
Constructor.
void removeCallback(SoCallbackListCB *f, void *userData=NULL)
Removes a function from the list of callback functions.
void invokeCallbacks(void *callbackData)
Invokes each callback function in the list, passing each function the user data supplied when they we...
void enable(SbBool enableCallbacks)
Set the callbacks enabled state.
void SoCallbackListCB(void *userData, void *callbackData)