eris
1.4.0
A WorldForge client library.
|
#include <ActiveMarker.h>
Public Member Functions | |
ActiveMarker () | |
~ActiveMarker () | |
operator std::shared_ptr< bool > () | |
const std::shared_ptr< bool > & | getMarker () const |
ActiveMarker & | operator= (ActiveMarker &&rhs) noexcept |
To be used with EventService::runOnMainThread.
Use an instance of this as a field on your class to handle cancellation of handlers automatically when your instance is destroyed. The destructor will automatically set the marker to "false".
Definition at line 33 of file ActiveMarker.h.
Eris::ActiveMarker::ActiveMarker | ( | ) |
Ctor. Will initialize the marker to "true".
Definition at line 23 of file ActiveMarker.cpp.
Eris::ActiveMarker::~ActiveMarker | ( | ) |
Dtor. Will set the marker to "false".
Definition at line 27 of file ActiveMarker.cpp.
Eris::ActiveMarker::operator std::shared_ptr< bool > | ( | ) |
Implicit conversion operator for shared_ptr<bool>.
Definition at line 35 of file ActiveMarker.cpp.