HDK
|
#include <GU_DetailHandle.h>
Public Member Functions | |
GU_DetailHandleAutoReadLock (const GU_ConstDetailHandle &handle) | |
GU_DetailHandleAutoReadLock (const GU_DetailHandle &handle) | |
~GU_DetailHandleAutoReadLock () | |
bool | isValid () const |
const GU_Detail * | getGdp () const |
const GU_ConstDetailHandle & | handle () const |
const GU_Detail * | operator-> () const |
const GU_Detail & | operator* () const |
SYS_SAFE_BOOL | operator bool () const |
Safe-bool operator to return whether the handle is valid. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable | |
UT_NonCopyable ()=default | |
~UT_NonCopyable ()=default | |
UT_NonCopyable (const UT_NonCopyable &)=delete | |
UT_NonCopyable & | operator= (const UT_NonCopyable &)=delete |
NOTE: Locking is no longer encouraged, and never was enforced. Use .gdp() instead.
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.
Definition at line 284 of file GU_DetailHandle.h.
|
inline |
Definition at line 288 of file GU_DetailHandle.h.
|
inline |
Definition at line 293 of file GU_DetailHandle.h.
|
inline |
Definition at line 298 of file GU_DetailHandle.h.
|
inline |
Definition at line 304 of file GU_DetailHandle.h.
|
inline |
Definition at line 305 of file GU_DetailHandle.h.
|
inline |
Definition at line 303 of file GU_DetailHandle.h.
|
inline |
Safe-bool operator to return whether the handle is valid.
Definition at line 310 of file GU_DetailHandle.h.
|
inline |
Definition at line 307 of file GU_DetailHandle.h.
|
inline |
Definition at line 306 of file GU_DetailHandle.h.