|
| CDataString (const string &data) |
|
IObject * | Clone () const |
| Clone the object's contains and return a pointer to the newly created object. More...
|
|
void | Clone (IObject *obj) const |
| Clone the object's contains to a pointer. More...
|
|
| operator const string () const |
|
| operator const char * () const |
|
| operator const wstring () const |
|
CDataString & | operator= (const string &data) |
|
CDataString & | operator= (const char *data) |
|
bool | operator== (const string &value) const |
|
bool | operator== (const char *value) const |
|
CDataString & | operator= (const wstring &data) |
|
CDataString & | operator= (const wchar_t *data) |
|
bool | operator== (const wstring &value) const |
|
virtual string | ToString () const |
|
virtual const IType * | GetType () const |
|
virtual bool | Equals (const IObject *obj) const |
| Compare the object with another object. More...
|
|
WeakPtr_type & | GetWeakReference () |
| get weak reference object. More...
|
|
virtual int | ProcessObjectEvent (const ObjectEvent &event) |
| this function is only used to backward compatibility of ParaObject:AddEvent() function. More...
|
|
void | addref () const |
| add reference count of the object. More...
|
|
bool | delref () const |
| decrease reference count of the object. More...
|
|
int | GetRefCount () const |
| get the reference count
|
|
virtual int | Release () |
|
CRefCounted * | AddToAutoReleasePool () |
| addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
|
|
|
static const IType * | m_type =NULL |
|
§ Clone() [1/2]
IObject* ParaEngine::CDataString::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::CDataString::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