Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

# COORDS Class Reference

Represents the coordinates of a cell. More...

List of all members.

## Public Member Functions
| COORDS (unsigned col, unsigned row)
void | row (unsigned r)
unsigned | row () const
void | col (unsigned c)
unsigned | col () const
void | move (int horz, int vert)
bool | operator== (COORDS coords) const
bool | operator!= (COORDS coords) const
void | swap (COORDS &coords)

## Detailed Description

Represents the coordinates of a cell.

## Constructor & Destructor Documentation

COORDS | ( | unsigned | col,
|  | unsigned | row
| ) | `[inline]`

| c'tor

## Member Function Documentation

unsigned col | ( |  | ) | const`[inline]`

| Returns the column of this coordinates.

void col | ( | unsigned | c | ) | `[inline]`

| Sets the column of this coordinates.

void move | ( | int | horz,
|  | int | vert
| ) | `[inline]`

| Moves this coordinates.

bool operator!= | ( | COORDS | coords | ) | const`[inline]`

| Compare two coordinates.

bool operator== | ( | COORDS | coords | ) | const`[inline]`

| Compare two coordinates.

unsigned row | ( |  | ) | const`[inline]`

| Returns the row of this coordinates.

void row | ( | unsigned | r | ) | `[inline]`

| Sets the row of this coordinates.

void swap | ( | COORDS & | coords | ) | `[inline]`

| Swaps two coordinates.

| by Steven Weiss. You can contact me at steven11@gmx.de.