|
static const IType * | m_type =NULL |
|
§ Clone() [1/2]
IObject* ParaEngine::CDataDouble::Clone |
( |
| ) |
const |
|
inlinevirtual |
Clone the object's contains and return a pointer to the newly created object.
The caller should free the memory of the return object. Inheritance should implement this function void Clone(IObject*) and IObject* Clone() should have the same behavior
Reimplemented from ParaEngine::IObject.
§ Clone() [2/2]
void ParaEngine::CDataDouble::Clone |
( |
IObject * |
obj | ) |
const |
|
inlinevirtual |
Clone the object's contains to a pointer.
The caller should allocate the memory and pass the pointer to this function.. Inheritance should implement this function void Clone(IObject*) and IObject* Clone() should have the same behavior In some cases, if you want to avoid Dead Reference( one object is being referred to by many objects and you can't update all the references). It is possible to use this function to replace the contains at a given pointer. But this may result in memory leak if you do not implement this function carefully or misuse it.
Reimplemented from ParaEngine::IObject.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/util/Type.h
- Client/trunk/ParaEngineClient/util/Type.cpp