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:

field3d/ROP_Field3D.C, SIM/SIM_SolverHair.C, and SIM/SNOW_Solver.C.

Definition at line 201 of file GU_DetailHandle.h.


Constructor & Destructor Documentation

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

Definition at line 205 of file GU_DetailHandle.h.

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

Definition at line 210 of file GU_DetailHandle.h.

GU_DetailHandleAutoReadLock::~GU_DetailHandleAutoReadLock (  )  [inline]

Definition at line 215 of file GU_DetailHandle.h.


Member Function Documentation

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

Definition at line 220 of file GU_DetailHandle.h.


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

Generated on Thu Jan 31 00:31:21 2013 for HDK by  doxygen 1.5.9