Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

SgReserveMarker Class Reference

Declare a variable of this class on the stack to reserve a board marker. More...

#include <SgMarker.h>

List of all members.

Public Member Functions

 SgReserveMarker (SgMarker &marker)
 In debug build, assert that the marker is not already in use.
 ~SgReserveMarker ()

Private Attributes

SgMarkerm_marker

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Data Documentation

Definition at line 118 of file SgMarker.h.

Referenced by SgReserveMarker(), and ~SgReserveMarker().


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


Sun Mar 13 2011 Doxygen 1.7.1