This is a small structure representing a row and column in a table. More...
#include "gtable.h"
Public Member Functions | |
GTableIndex(int row, int col) | |
Constructs a location representing the given row and column. More... | |
GTableIndex() | |
Constructs a default location 0, 0. More... | |
string | toString() const |
Returns a string representation of this location, such as "r2c17". More... | |
Public Attributes | |
int | col |
int | row |
This is a small structure representing a row and column in a table.
Several GTable methods return row/column locations in a single value using this structure.
GTableIndex | ( | int | row, |
int | col | ||
) |
Constructs a location representing the given row and column.
Any indexes are allowed, including negatives and out-of-bounds indexes.
GTableIndex | ( | ) |
Constructs a default location 0, 0.
string toString | ( | ) | const |
Returns a string representation of this location, such as "r2c17".
int col |
int row |