30 #ifndef RIOENGINE_CENGINE_COBJECT_H_
31 #define RIOENGINE_CENGINE_COBJECT_H_
35 #define SAFE_RETAIN(x) CObject::safeRetain(x)
36 #define SAFE_RELEASE(x) CObject::safeRelease(x)
37 #define SAFE_RELEASE_ARRAY(x) CObject::safeReleaseArray(x)
154 mutable unsigned int __refCount;
162 QDataStream &operator<<(QDataStream &ds, const
CObject &obj);
163 QDataStream &operator>>(QDataStream &ds,
CObject &obj);
165 #endif // RIOENGINE_CENGINE_COBJECT_H_
static void safeRelease(T *pointer)
static void safeRelease(const char *pointer)
virtual void copyValuesFromObject(const CObject &object)
bool isValidCObject() const
unsigned int retainCount() const
static void safeRetain(void *pointer)
unsigned int release() const
static void safeReleaseArray(T *array)
CObject & operator=(const CObject &object)