![]() |
VR-Forces 4.7 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...
Classes | |
| struct | DtCallbackInfoType |
Public Types | |
| typedef void(* | DtCallbackFunctionType )(void *) |
| The function signature of the callback function. | |
Public Member Functions | |
| DtNoArgumentCallbackList () | |
| Default constructor. | |
| DtNoArgumentCallbackList (const DtNoArgumentCallbackList &orig) | |
| Copy constructor. | |
| bool | addCallback (DtCallbackFunctionType fcn, void *usrData) |
| Adds a new callback to the list. | |
| bool | 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::list < boost::shared_ptr < DtCallbackInfoType > > | DtCallbackListType |
Protected Attributes | |
| tbb::spin_mutex | myMutex |
| DtCallbackListType | myCallbackList |
| unsigned | myCallbackCount |
Private Member Functions | |
| DtNoArgumentCallbackList & | operator= (const DtNoArgumentCallbackList &orig) |
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 |
| DtNoArgumentCallbackList::DtNoArgumentCallbackList | ( | ) |
Default constructor.
|
explicit |
Copy constructor.
Exists mostly so that std::map will work on linux without C++11.
| bool 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.
| bool 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.
|
private |
|
mutableprotected |
|
protected |
|
protected |