eris  1.4.0
A WorldForge client library.
Eris::ActiveMarker Class Reference

#include <ActiveMarker.h>

Inheritance diagram for Eris::ActiveMarker:
Collaboration diagram for Eris::ActiveMarker:

Public Member Functions

 ActiveMarker ()
 
 ~ActiveMarker ()
 
 operator std::shared_ptr< bool > ()
 
const std::shared_ptr< bool > & getMarker () const
 
ActiveMarkeroperator= (ActiveMarker &&rhs) noexcept
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

Eris::ActiveMarker::operator std::shared_ptr< bool > ( )

Implicit conversion operator for shared_ptr<bool>.

Returns

Definition at line 35 of file ActiveMarker.cpp.


The documentation for this class was generated from the following files: