|
An Information Portal to Biological Macromolecular Structures |
||
|
PDB Home |
Contact Us |
Software Tools Home | Dictionary Home | PDBML Home | |
#include "ISTable.h"
int ISTable::UpdateCell(CifString & theElement, int colIndex,
int rowIndex);
#include "ISTable.h"
ISTable * pTable = new ISTable();
CifString zero("0");
... // do table maniputation
// change all non-diagonals to "0"
for (int i = 0; i < pTable->GetNumColumns(); i++) {
for (int j = 0; j < pTable->GetNumRows(); j++) {
if (i != j)
pTable->UpdateCell(zero, i, j);
}
}
UpdateCell changes the data of a particular cell.
| theElement | The CifString to update the cell with. |
| colIndex | The index of the column of the cell to be updated. |
| rowIndex | The index of the row of the cell to be updated. |
A negative value indicates an error or warning.
| None |