Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::CallBackList Class Reference

#include <inviwo/core/util/callback.h>

Public Member Functions

const BaseCallBack * addLambdaCallback (std::function< void()> lambda)
std::shared_ptr< std::function< void()> > addLambdaCallbackRaii (std::function< void()> lambda)
 CallBackList (CallBackList &&)=default
 CallBackList (const CallBackList &rhs)
void clear ()
 Removes all added callbacks.
void invokeAll () const
CallBackList & operator= (CallBackList &)=default
CallBackList & operator= (const CallBackList &that)
bool remove (const BaseCallBack *callback)
 Removes callback if the callback was added before.
void startBlockingCallbacks ()
void stopBlockingCallbacks ()

Detailed Description

Example usage CallBackList list; list.addMemberFunction(&myClassObject, &MYClassObject::myFunction); or list.addLambdaCallback([](){});

Copy or assign will clear any callback Move or move assign will move the callback

Member Function Documentation

◆ remove()

bool inviwo::CallBackList::remove ( const BaseCallBack * callback)
inline

Removes callback if the callback was added before.

Parameters
callbackCallback to be removed.
Returns
bool True if removed, false otherwise.

The documentation for this class was generated from the following file:
  • include/inviwo/core/util/callback.h