My Project
|
Public Member Functions | |
CDataCellItem (IObject *data, CDataRow *parent, CDataColumnInfo *columninfo) | |
virtual const IType * | GetType () const |
IObject * | Clone () const |
clone every thing, but the data only adds reference instead of calling data's Clone() | |
void | Clone (IObject *) const |
Clone the object's contains to a pointer. More... | |
virtual CDataCellItem & | operator= (const string &value) |
Assigning different value to the cell. More... | |
virtual CDataCellItem & | operator= (int value) |
virtual CDataCellItem & | operator= (bool value) |
virtual CDataCellItem & | operator= (float value) |
virtual CDataCellItem & | operator= (double value) |
virtual CDataCellItem & | operator= (IObject &value) |
virtual CDataCellItem & | operator= (CDataCellItem *value) |
virtual | operator string () |
virtual | operator int () |
virtual | operator bool () |
virtual | operator float () |
virtual | operator double () |
virtual | operator const char * () |
virtual | operator IObject * () |
bool | IsNull () |
bool | SetNull () |
bool | IsValid () const |
![]() | |
virtual bool | Equals (const IObject *obj) const |
Compare the object with another object. More... | |
virtual std::string | ToString () const |
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... | |
Protected Attributes | |
IObject * | m_data |
CDataRow * | m_parent |
CDataColumnInfo * | m_columninfo |
bool | m_bIsValid |
IType * | m_type |
![]() | |
WeakPtr_type | m_weak_reference |
![]() | |
int | m_refcount |
Additional Inherited Members | |
![]() | |
typedef ParaEngine::weak_ptr< IObject > | WeakPtr_type |
|
virtual |
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.
|
virtual |
Assigning different value to the cell.
If type not match, nothing will happen;