My Project
|
children of data row is some addition data rows. More...
#include <DataTable.h>
Public Member Functions | |
virtual IObject * | Clone () const |
Clone never clones the m_nIndex, m_parent, m_bIsFixedSize new object is: m_nIndex=-1;m_parent=NULL;m_bIsFixedSize=false. More... | |
virtual void | Clone (IObject *obj) const |
Clone the object's contains to a pointer. More... | |
virtual ICollection< CDataRow > * | GetChildRows () |
virtual int | SetAt (IObject &obj, int index) |
Set the object at a given position in a row or column This will change the corresponding records in the CBaseTable. More... | |
virtual const CDataCellItem * | GetAt (int index) const |
get the IObject at a given position More... | |
virtual CDataCellItem * | GetAt (int index) |
virtual void | Delete () |
delete the row, | |
virtual int | Resize (int newsize) |
Resize the current row or column, if m_IsFixedSize==true, it will fail. More... | |
virtual void | BeingEdit () |
Begin the edit transaction. More... | |
virtual void | CancelEdit () |
virtual int | EndEdit () |
validates all modified data and set m_bEditing =false More... | |
virtual int | GetRowState () |
const CDataCellItem & | operator[] (const string &szName) const |
const CDataCellItem & | operator[] (int index) const |
CDataCellItem & | operator[] (const string &szName) |
CDataCellItem & | operator[] (int index) |
virtual CColumnCollection * | ColumnInfos () |
![]() | |
virtual void | Clear () |
virtual bool | Equals (const IObject *obj) const |
Size and corresponding members of the two objects must equal to return true; It uses the Equals() member function of the object to compare. | |
bool | Update () |
virtual int | Add (IObject &obj) |
Add an object to the row or column, will failed if m_bIsFixedSize==true Only the. More... | |
virtual int | Insert (IObject &obj, int index) |
insert an object at a given position,, will failed if m_bIsFixedSize==true More... | |
virtual int | Size () const |
virtual bool | IsValid () const |
Check if the data in the row or column is valid if not valid, the row or column's Update() must be called to make it valid. | |
virtual int | Remove (int index) |
Remove an object, if m_IsFixedSize==true, it will fail. More... | |
![]() | |
virtual const IType * | GetType () const |
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 | |
Collection_Vector< CDataRow > | m_children |
CColumnCollection * | m_ColumnInfo |
bool | m_bEditing |
int | m_eRowState |
![]() | |
bool | m_bIsFixedSize |
int | m_nIndex |
CBaseTable * | m_parent |
Collection_Vector< IObject > | m_data |
int | m_etype |
![]() | |
WeakPtr_type | m_weak_reference |
![]() | |
int | m_refcount |
Additional Inherited Members | |
![]() | |
typedef ParaEngine::weak_ptr< IObject > | WeakPtr_type |
![]() | |
CBaseRowColumn (int index, int etype) | |
CBaseRowColumn (int index, int etype, bool fixedsize) | |
CBaseRowColumn (int index, bool fixedsize) | |
virtual int | InternalSetAt (IObject &obj, int index) |
Internal function. More... | |
children of data row is some addition data rows.
they do not attach to any table TODO: add undo support of the rows, so changes only take place when EndEdit() is executed
|
inlinevirtual |
|
virtual |
Clone never clones the m_nIndex, m_parent, m_bIsFixedSize new object is: m_nIndex=-1;m_parent=NULL;m_bIsFixedSize=false.
Clone never clones the m_nIndex, m_parent, m_bIsFixedSize and m_bIsValid new object is: m_nIndex=-1;m_parent=NULL;m_bIsFixedSize=false;m_bIsValid=false;.
Reimplemented from ParaEngine::CBaseRowColumn.
|
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::CBaseRowColumn.
|
virtual |
validates all modified data and set m_bEditing =false
|
virtual |
get the IObject at a given position
Reimplemented from ParaEngine::CBaseRowColumn.
|
virtual |
Resize the current row or column, if m_IsFixedSize==true, it will fail.
Reimplemented from ParaEngine::CBaseRowColumn.
|
virtual |
Set the object at a given position in a row or column This will change the corresponding records in the CBaseTable.
Reimplemented from ParaEngine::CBaseRowColumn.