This class holds a reference to an attribute. Such an indirection level allows an easy way to invalidate attribute references when an attribute gets deleted (or when the detail itself is deleted).
More...
#include <GA_AttributeProxy.h>
This class holds a reference to an attribute. Such an indirection level allows an easy way to invalidate attribute references when an attribute gets deleted (or when the detail itself is deleted).
Definition at line 30 of file GA_AttributeProxy.h.
GA_AttributeProxy::~GA_AttributeProxy |
( |
| ) |
|
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)
NOTE: This treats GA_AttributeProxy as unshared, despite myReferenceCount, because the count should always be 1.
Obtains an actual attribute. May be NULL, if the attribute got deleted or was never actually found (or sussessfully created).
Definition at line 40 of file GA_AttributeProxy.h.
Obtains an actual attribute. May be NULL, if the attribute got deleted or was never actually found (or sussessfully created).
Definition at line 42 of file GA_AttributeProxy.h.
int64 GA_AttributeProxy::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
Returns the memory footprint of the proxy and the attribute it represents.
void GA_AttributeProxy::intrusive_ptr_release |
( |
| ) |
const |
|
inline |
bool GA_AttributeProxy::isLastReference |
( |
| ) |
const |
Checks if there is only one reference to this proxy (held by the caller)
bool GA_AttributeProxy::isValid |
( |
| ) |
const |
|
inline |
Returns true if the proxy is still pointing to a valid attribute.
Definition at line 47 of file GA_AttributeProxy.h.
The documentation for this class was generated from the following file: