Declare a variable of this class on the stack to reserve a board marker. More...
#include <SgMarker.h>
Public Member Functions | |
SgReserveMarker (SgMarker &marker) | |
In debug build, assert that the marker is not already in use. | |
~SgReserveMarker () | |
Private Attributes | |
SgMarker & | m_marker |
Declare a variable of this class on the stack to reserve a board marker.
It asserts that nobody else is using the same marker at the same time.
Definition at line 108 of file SgMarker.h.
SgReserveMarker::SgReserveMarker | ( | SgMarker & | marker | ) |
In debug build, assert that the marker is not already in use.
Definition at line 124 of file SgMarker.h.
References m_marker, SgMarker::m_markerInUse, and SG_ASSERT.
SgReserveMarker::~SgReserveMarker | ( | ) |
Definition at line 131 of file SgMarker.h.
References m_marker, and SgMarker::m_markerInUse.
SgMarker& SgReserveMarker::m_marker [private] |
Definition at line 118 of file SgMarker.h.
Referenced by SgReserveMarker(), and ~SgReserveMarker().