Esempio n. 1
0
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;
}
Esempio n. 2
0
OFVALUE::OFVALUE( const OFVALUE &copy )
{
    // 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();
}
Esempio n. 3
0
PointCloudAccessor& PointCloudAccessor::operator=(const PointCloudAccessor& rhs)
{
   if (this != &rhs)
   {
      decrementRefCount();
      mpDeleter = rhs.mpDeleter;
      mpImpl = rhs.mpImpl;
      incrementRefCount();
   }

   return *this;
}
Esempio n. 4
0
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;
}
Esempio n. 5
0
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();
}
Esempio n. 7
0
void Field_Base::serviceRetain()
{
	incrementRefCount();
}
void ScriptedAnnotation_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 9
0
void Namespace_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 10
0
void TypeBuilder_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 11
0
void TypeTransaction_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 12
0
PointCloudAccessor::PointCloudAccessor(const PointCloudAccessor& da) :
   mpDeleter(da.mpDeleter),
   mpImpl(da.mpImpl)
{
   incrementRefCount();
}
Esempio n. 13
0
PointCloudAccessor::PointCloudAccessor(PointCloudAccessorDeleter* pDeleter, PointCloudAccessorImpl* pImpl) :
   mpDeleter(pDeleter),
   mpImpl(pImpl)
{
   incrementRefCount();
}
Esempio n. 14
0
void Method_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 15
0
void ReflectorBase::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 16
0
void Component_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 17
0
void ModulePartLoader_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 18
0
void System_Base::serviceRetain()
{
	incrementRefCount();
}
Esempio n. 19
0
void Launcher_Base::serviceRetain()
{
	incrementRefCount();
}