inline KeyValue *kvStruct(Object *key, Object *value) { KeyValue *kv = (KeyValue *)malloc(sizeof(*kv)); incrementRefCount(key); incrementRefCount(value); kv->key = key; kv->value = value; return kv; }
OFVALUE::OFVALUE( const OFVALUE © ) { // No need to destroy. This must be a new OFVALUE type = copy.type; value.valid.id[0] = copy.value.valid.id[0]; value.valid.id[1] = copy.value.valid.id[1]; value.valid.flags = copy.value.valid.flags; incrementRefCount(); }
PointCloudAccessor& PointCloudAccessor::operator=(const PointCloudAccessor& rhs) { if (this != &rhs) { decrementRefCount(); mpDeleter = rhs.mpDeleter; mpImpl = rhs.mpImpl; incrementRefCount(); } return *this; }
Chain *prepend(Chain *n, Object *data) { Chain *aChain = newChain(); aChain->value = data; incrementRefCount(data); if (n != NULL) { aChain->next = n; } n = aChain; #ifdef DEBUG printf("Prepending:: %p\n", n); #endif return n; }
OFVALUE & OFVALUE::operator=( const OFVALUE &rhs ) { if ( this == &rhs ) return *this; // This OFVALUE may have contained something before // this assignment was called. destroy(); type = rhs.type; // Compiler can do a straight memcpy of the rhs. value = rhs.value; incrementRefCount(); return *this; }
void ModuleManager_Base::serviceRetain() { incrementRefCount(); }
void Field_Base::serviceRetain() { incrementRefCount(); }
void ScriptedAnnotation_Base::serviceRetain() { incrementRefCount(); }
void Namespace_Base::serviceRetain() { incrementRefCount(); }
void TypeBuilder_Base::serviceRetain() { incrementRefCount(); }
void TypeTransaction_Base::serviceRetain() { incrementRefCount(); }
PointCloudAccessor::PointCloudAccessor(const PointCloudAccessor& da) : mpDeleter(da.mpDeleter), mpImpl(da.mpImpl) { incrementRefCount(); }
PointCloudAccessor::PointCloudAccessor(PointCloudAccessorDeleter* pDeleter, PointCloudAccessorImpl* pImpl) : mpDeleter(pDeleter), mpImpl(pImpl) { incrementRefCount(); }
void Method_Base::serviceRetain() { incrementRefCount(); }
void ReflectorBase::serviceRetain() { incrementRefCount(); }
void Component_Base::serviceRetain() { incrementRefCount(); }
void ModulePartLoader_Base::serviceRetain() { incrementRefCount(); }
void System_Base::serviceRetain() { incrementRefCount(); }
void Launcher_Base::serviceRetain() { incrementRefCount(); }