GU_DetailHandleAutoReadLock Class Reference

#include <GU_DetailHandle.h>

List of all members.

Public Member Functions

 GU_DetailHandleAutoReadLock (const GU_ConstDetailHandle &handle)
 GU_DetailHandleAutoReadLock (const GU_DetailHandle &handle)
 ~GU_DetailHandleAutoReadLock ()
const GU_DetailgetGdp () const


Detailed Description

GU_DetalHandleAutoFOOLock is a utility class to allow the easy extraction of const GU_Detail * from GU_DetailHandles. It uses the C++ scoping mechanism to make the locking & unlocking transparent to the caller. One can thus do: GU_DetailHandleAutoFOOLock gdl(sop->getCookedGeo()) const GU_Detail *gdp = gdl.getGdp(); The FOO = Read returns const GU_Details and does a read lock. The FOO = Write returns non-const GU_Details and does a write lock.
Examples:

SIM/SIM_SolverHair.C, and SIM/SIM_SolverSNOW.C.

Definition at line 196 of file GU_DetailHandle.h.


Constructor & Destructor Documentation

GU_DetailHandleAutoReadLock::GU_DetailHandleAutoReadLock ( const GU_ConstDetailHandle handle  )  [inline]

Definition at line 200 of file GU_DetailHandle.h.

GU_DetailHandleAutoReadLock::GU_DetailHandleAutoReadLock ( const GU_DetailHandle handle  )  [inline]

Definition at line 205 of file GU_DetailHandle.h.

GU_DetailHandleAutoReadLock::~GU_DetailHandleAutoReadLock (  )  [inline]

Definition at line 210 of file GU_DetailHandle.h.


Member Function Documentation

const GU_Detail* GU_DetailHandleAutoReadLock::getGdp (  )  const [inline]

Definition at line 215 of file GU_DetailHandle.h.


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

Generated on Fri May 25 00:10:28 2012 for HDK by  doxygen 1.5.9