![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
int ISTable::DeleteAt(int colIndex, int rowIndex,
int updateNumRows = 1);
#include "ISTable.h"
ISTable * pTable = new ISTable();
... // do table maniputation
// Prune all bad values from table
for (int i = pTable->GetNumColumns() - 1; i >= 0; i--) {
for (int j = pTable->GetNumRows() - 1; j >= 0; j--) {
CifString cs;
pTable->GetCell(cs, i, j);
if (!cs.Compare(BAD_VALUE))
pTable->DeleteAt(i, j);
}
}
DeleteAt erases all the data of a particular cell. It also removes the cell from the table. WARNING: the shape of the table may change.
colIndex | The index of the column of the cell to be deleted. |
rowIndex | The index of the row of the cell to be deleted. |
updateNumRows | Used internally to avoid recompution of the number of rows. This parameter does not need to be bothered with. The default is to recompute. This is the safest thing anyway, so ignore this parameter. |
A negative value indicates an error or warning.
This method is NOT safe after index creation.
See also: | ClearAt |
---|