![]() |
MAK Legion 1.1 API Documentation
|
The Callback list holds a list of Callback objects and manages adding/removing them from the list. More...
Collaboration diagram for Legion::CallbackList< Cb, Param >:Public Member Functions | |
| CallbackList () | |
| ~CallbackList () | |
| bool | add (Cb cb) |
| add a callback to the internal list. More... | |
| bool | remove (Cb cb) |
| Remove a callback from the internal list. More... | |
| void | execute (Param...params) |
| Execute all the callbacks on the internal list of callbacks. More... | |
Protected Attributes | |
| std::list< Cb > | myCallbacks |
| std::list< Cb > | myToAddCallbacks |
| std::list< Cb > | myToRemoveCallbacks |
| int | myEntryLevel |
The Callback list holds a list of Callback objects and manages adding/removing them from the list.
|
inline |
|
inline |
|
inline |
add a callback to the internal list.
This checks the list first to see if the callback exists. This will return true if the callback was successfully added to the list and false if the callback is already in the list. This function may be called during the execution of callbacks from this list. Callbacks added during execution will not be fired until the next execution. This is not a thread-safe function.
References Legion::CallbackList< Cb, Param >::myCallbacks, Legion::CallbackList< Cb, Param >::myEntryLevel, and Legion::CallbackList< Cb, Param >::myToAddCallbacks.
Referenced by Legion::CallbackList< Cb, Param >::execute().
|
inline |
Execute all the callbacks on the internal list of callbacks.
References Legion::CallbackList< Cb, Param >::add(), Legion::CallbackList< Cb, Param >::myCallbacks, Legion::CallbackList< Cb, Param >::myEntryLevel, Legion::CallbackList< Cb, Param >::myToAddCallbacks, and Legion::CallbackList< Cb, Param >::myToRemoveCallbacks.
|
inline |
Remove a callback from the internal list.
This function may be called during the execution of callbacks from this list. Callbacks removed during execution will not actually be removed until the execution is complete and will fire. This is not a thread-safe function.
References Legion::CallbackList< Cb, Param >::myCallbacks, Legion::CallbackList< Cb, Param >::myEntryLevel, and Legion::CallbackList< Cb, Param >::myToRemoveCallbacks.
|
protected |
|
protected |
|
protected |
Referenced by Legion::CallbackList< Cb, Param >::add(), and Legion::CallbackList< Cb, Param >::execute().
|
protected |