Eris  1.4.0
Public Member Functions | List of all members
Eris::ActiveMarker Class Reference

To be used with EventService::runOnMainThread. More...

#include <ActiveMarker.h>

Inheritance diagram for Eris::ActiveMarker:

Public Member Functions

 ActiveMarker ()
 Ctor. More...
 
 ~ActiveMarker ()
 Dtor. More...
 
 operator std::shared_ptr< bool > ()
 Implicit conversion operator for shared_ptr<bool>. More...
 
const std::shared_ptr< bool > getMarker () const
 
ActiveMarkeroperator= (ActiveMarker &&rhs)
 

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".

Constructor & Destructor Documentation

◆ ActiveMarker()

Eris::ActiveMarker::ActiveMarker ( )

Ctor.

Will initialize the marker to "true".

◆ ~ActiveMarker()

Eris::ActiveMarker::~ActiveMarker ( )

Dtor.

Will set the marker to "false".

Member Function Documentation

◆ operator std::shared_ptr< bool >()

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

Implicit conversion operator for shared_ptr<bool>.

Returns

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