Inviwo
0.9.10.1
Inviwo documentation
|
#include <callback.h>
Public Member Functions | |
void | startBlockingCallbacks () |
void | stopBlockingCallbacks () |
void | invokeAll () const |
template<typename T > | |
const BaseCallBack * | addMemberFunction (T *o, void(T::*m)()) |
const BaseCallBack * | addLambdaCallback (std::function< void()> lambda) |
std::shared_ptr< std::function< void()> > | addLambdaCallbackRaii (std::function< void()> lambda) |
bool | remove (const BaseCallBack *callback) |
Removes callback if the callback was added before. More... | |
void | clear () |
Removes all added callbacks. | |
template<typename T > | |
void | removeMemberFunction (T *o) |
Remove all callbacks associated with the object. | |
Example usage CallBackList list; list.addMemberFunction(&myClassObject, &MYClassObject::myFunction); or list.addLambdaCallback([](){});
|
inline |
Removes callback if the callback was added before.
callback | Callback to be removed. |