RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: GetColumnNames Up: General Methods Previous: GetNumColumns

GetNumRows

NAME GetNumRows

PROTOTYPE

#include "ISTable.h"

int ISTable::GetNumRows();

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable("MyTable");

// Add some columns and stuff, then loop over the rows

for (int i = 0; i < pTable->GetNumRows(); i++) {
  // Do something to each row
}
PURPOSE

GetNumRows returns the number of rows in the table. Each row might not be complete.

RECEIVES

No Arguments  

RETURN VALUE

The number of rows in the table, i.e. the length of the longest column.

REMARKS

See also: GetNumColumns



Olivera Tosic
6/12/2002

 

© RCSB PDB