|
| CBaseTable (int rowsize, int columnsize) |
|
virtual | ~CBaseTable () |
| Release all resource, output error if some of the rows and columns are not properly release via ReleaseXX() functions.
|
|
virtual int | InsertRow (int index) |
| insert a new row at a given position, return the newly inserted row (it is an empty row) the row is filled with null (using Resize()) will invalidate the rows which are larger than index and all columns. More...
|
|
virtual int | InsertRow (CBaseRowColumn &row, int index) |
| insert an existing row at a given position if the size of the input object does not match the CBaseTable's, the input object's Resize() will be called to set the correct size; will invalidate the rows which are larger than index and all columns. More...
|
|
virtual CBaseRowColumn * | GetRow (int index) |
| get a row, you should release it after use More...
|
|
virtual int | InsertColumn (int index) |
| insert a new column at a given position, return the newly inserted column (it is an empty column) the column is filled with null(using Resize()) will invalidate the columns which are larger than index and all rows. More...
|
|
virtual int | InsertColumn (CBaseRowColumn &column, int index) |
| insert an existing column at a given position if the size of the input object does not match the CBaseTable's, the input object's Resize() will be called to set the correct size; will invalidate the columns which are larger than index and all rows. More...
|
|
virtual const IObject * | GetAt (int row, int column) const |
| get the IObject at a given position More...
|
|
virtual IObject * | GetAt (int row, int column) |
|
virtual int | SetAt (IObject &obj, int row, int column) |
| Set the IObject at a given position. More...
|
|
virtual void | DeleteColumn (int index) |
|
virtual void | DeleteRow (int index) |
|
virtual void | Clear () |
|
virtual int | NumberOfRows () |
|
virtual int | NumberOfColumns () |
|
§ GetAt()
const IObject * CBaseTable::GetAt |
( |
int |
row, |
|
|
int |
column |
|
) |
| const |
|
virtual |
get the IObject at a given position
- Returns
- : NULL if not exists.
§ GetRow()
get a row, you should release it after use
get a row
- Returns
- : NULL if not exists.
§ InsertColumn() [1/2]
int CBaseTable::InsertColumn |
( |
int |
index | ) |
|
|
virtual |
insert a new column at a given position, return the newly inserted column (it is an empty column) the column is filled with null(using Resize()) will invalidate the columns which are larger than index and all rows.
One shall delete or release the input CBaseRowColumn.
§ InsertColumn() [2/2]
insert an existing column at a given position if the size of the input object does not match the CBaseTable's, the input object's Resize() will be called to set the correct size; will invalidate the columns which are larger than index and all rows.
One shall delete or release the input CBaseRowColumn.
§ InsertRow() [1/2]
int CBaseTable::InsertRow |
( |
int |
index | ) |
|
|
virtual |
insert a new row at a given position, return the newly inserted row (it is an empty row) the row is filled with null (using Resize()) will invalidate the rows which are larger than index and all columns.
One shall delete or release the input CBaseRowColumn.
§ InsertRow() [2/2]
insert an existing row at a given position if the size of the input object does not match the CBaseTable's, the input object's Resize() will be called to set the correct size; will invalidate the rows which are larger than index and all columns.
One shall delete or release the input CBaseRowColumn.
§ SetAt()
int CBaseTable::SetAt |
( |
IObject & |
obj, |
|
|
int |
row, |
|
|
int |
column |
|
) |
| |
|
virtual |
Set the IObject at a given position.
- Returns
- : -1 if failed
-
: return row*number_of_columns+column, -1 if failed
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/CommonFramework/BaseTable.h
- Client/trunk/ParaEngineClient/CommonFramework/BaseTable.cpp