#include <GU_DetailHandle.h>
A GU_ConstDetailHandle uses a GU_DetailHandle to provide const-only access to a GU_Detail. It uses a GU_DetailHandle member variable to do all the actual work, and simply hides any functionality that is unsafe or inappropriate for a const GU_Detail.
- Examples:
- packedsphere/GT_GEOPackedSphere.C, packedsphere/GU_PackedSphere.C, packedsphere/GU_PackedSphere.h, SIM/SNOW_Solver.C, SIM/SNOW_Solver.h, and tetprim/GT_PrimTetra.C.
Definition at line 180 of file GU_DetailHandle.h.
GU_ConstDetailHandle::GU_ConstDetailHandle |
( |
| ) |
|
|
inline |
GU_ConstDetailHandle::GU_ConstDetailHandle |
( |
const GU_DetailHandle & |
handle | ) |
|
|
inline |
void GU_ConstDetailHandle::addPreserveRequest |
( |
| ) |
|
|
inline |
Preserve Requests: A preserve request is a request that people create a new GU_DetailHandle rather than editting the current one. It is used by SOPs to determine if it is safe to do an in place cook.
Definition at line 237 of file GU_DetailHandle.h.
void GU_ConstDetailHandle::clear |
( |
| ) |
|
|
inline |
const GU_Detail* GU_ConstDetailHandle::gdp |
( |
| ) |
const |
|
inline |
int GU_ConstDetailHandle::getLockCount |
( |
| ) |
const |
|
inline |
NOTE: Locking is not enforced, and no longer encouraged. Returns the number of locks made to the base handle for debugging.
Definition at line 269 of file GU_DetailHandle.h.
int64 GU_ConstDetailHandle::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
inline |
Return the amount of memory owned by the GU_DetailHandle itself, NOT the detail. This will count the memory of the GU_DetailHandleRef, which could be shared, so only the definitive "original" handle should be counted, e.g. the one on SOP_Node.
Definition at line 248 of file GU_DetailHandle.h.
int GU_ConstDetailHandle::getPreserveRequest |
( |
| ) |
const |
|
inline |
int GU_ConstDetailHandle::getRefCount |
( |
| ) |
const |
|
inline |
Returns the number of references made to the base handle.
Definition at line 229 of file GU_DetailHandle.h.
uint GU_ConstDetailHandle::hash |
( |
| ) |
const |
|
inline |
bool GU_ConstDetailHandle::isNull |
( |
| ) |
const |
|
inline |
bool GU_ConstDetailHandle::isValid |
( |
| ) |
const |
|
inline |
Look up a registered layer by handle.
Safe-bool operator to return whether the handle is valid.
Definition at line 226 of file GU_DetailHandle.h.
const GU_Detail* GU_ConstDetailHandle::readLock |
( |
| ) |
|
|
inline |
NOTE: Locking is not enforced, and no longer encouraged. This will acquire a read lock on the GU_Detail. The result is 0 if no lock can be acquired, or no underlying detail exists. The returned detail should be passed to unlock(). (Technically, no locking occurs on error, but unlock is a no-op with a 0 gdp)
Definition at line 256 of file GU_DetailHandle.h.
Ramp registration to allow geometry to be converted to integers across HOM boundaries. Registers & returns the handle, adding the handle to the registered list
void GU_ConstDetailHandle::removePreserveRequest |
( |
| ) |
|
|
inline |
NOTE: Locking is not enforced, and no longer encouraged. This will unlock one layer of locking. If the passed in gdp is null, no unlocking occurs. Otherwise, the passed in gdp is asserted to match the one which myHandle points to.
Definition at line 264 of file GU_DetailHandle.h.
static void GU_ConstDetailHandle::unregisterGeometries |
( |
UT_IntArray & |
registered | ) |
|
|
static |
Unregister all layers corresponding to the provided list, erase the list afterwards. Assertion if handle wasn't regsitered
The documentation for this class was generated from the following file: