![]() |
VR-Forces 4.2 Class Documentation
|
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList. More...
Public Types | |
| typedef void(* | DtCallbackFunctionType )(void *) |
| The function signature of the callback function. | |
Public Member Functions | |
| DtNoArgumentCallbackList () | |
| DtNoArgumentCallbackList (const DtNoArgumentCallbackList &orig) | |
| ~DtNoArgumentCallbackList () | |
| DtNoArgumentCallbackList & | operator= (const DtNoArgumentCallbackList &orig) |
| void | addCallback (DtCallbackFunctionType fcn, void *usrData) |
| Adds a new callback to the list. | |
| void | removeCallback (DtCallbackFunctionType fcn, void *usrData) |
| Removes the specified callback from the list. | |
| void | invokeCallbacks () |
| Invokes all the callbacks currently on the callback list. | |
| void | removeAll () |
| Removes all callbacks that have been registered. | |
Protected Types | |
| typedef std::pair < DtCallbackFunctionType, void * > | DtCallbackInfoType |
| typedef std::list < DtCallbackInfoType > | DtCallbackListType |
Protected Member Functions | |
| bool | contains (const DtCallbackListType &callbackList, DtCallbackFunctionType fcn, void *usrData) const |
Protected Attributes | |
| DtCallbackListType | myCallbackList |
| bool | myInvokingCallbacks |
| Flag used to indicate that the invokeCallbacks method is currently running. | |
| DtCallbackListType | myCallbacksToRemove |
| List used to queue callbacks for removal if removeCallback() is called during callback invokation. | |
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList.
| typedef void(* DtNoArgumentCallbackList::DtCallbackFunctionType)(void *) |
The function signature of the callback function.
|
protected |
|
protected |
| DtNoArgumentCallbackList::DtNoArgumentCallbackList | ( | ) |
| DtNoArgumentCallbackList::DtNoArgumentCallbackList | ( | const DtNoArgumentCallbackList & | orig | ) |
| DtNoArgumentCallbackList::~DtNoArgumentCallbackList | ( | ) |
| DtNoArgumentCallbackList& DtNoArgumentCallbackList::operator= | ( | const DtNoArgumentCallbackList & | orig | ) |
| void DtNoArgumentCallbackList::addCallback | ( | DtCallbackFunctionType | fcn, |
| void * | usrData | ||
| ) |
Adds a new callback to the list.
A duplicate entry is checked for first, and if found, this new function is not added.
| void DtNoArgumentCallbackList::removeCallback | ( | DtCallbackFunctionType | fcn, |
| void * | usrData | ||
| ) |
Removes the specified callback from the list.
| void DtNoArgumentCallbackList::invokeCallbacks | ( | ) |
Invokes all the callbacks currently on the callback list.
| void DtNoArgumentCallbackList::removeAll | ( | ) |
Removes all callbacks that have been registered.
|
protected |
|
protected |
|
protected |
Flag used to indicate that the invokeCallbacks method is currently running.
Value not copied with the copy constructor/assignment operator.
|
protected |
List used to queue callbacks for removal if removeCallback() is called during callback invokation.
Value not copied with the copy constructor/assignment operator.