Package subjectdata :: Module CellCoord :: Class CellCoord
[show private | hide private]
[frames | no frames]

Class CellCoord


A coordinate class (unbounded)
Method Summary
  __init__(self, col, row)
CellCoord's constructor.
  __eq__(self, obj)
Overloading operator ==
  __ge__(self, coord)
Overloading operator >=
  __gt__(self, coord)
Overloading operator >
  __hash__(self)
Hash function to be used by built-in python's dictionnaries.
  __le__(self, coord)
Overloading operator <=
  __lt__(self, coord)
Overloading operator <
  __ne__(self, obj)
Overloading operator !=
  __str__(self)
CellCoord clone(self)
Returns a copy of this object
    Accessors
int row(self)
Returns the row of this cell coordinate
int col(self)
Returns the column of this cell coordinate

Method Details

row(self)

Returns the row of this cell coordinate
Returns:
int

col(self)

Returns the column of this cell coordinate
Returns:
int

__init__(self, col, row)
(Constructor)

CellCoord's constructor.
Parameters:
col - Cell coordinate column
           (type=int)
row - Cell coordinate row
           (type=int)

__eq__(self, obj)
(Equality operator)

Overloading operator ==
Parameters:
obj - The compared cell coordinate
           (type=Object)

__ge__(self, coord)
(Greater-than-or-equals operator)

Overloading operator >=
Parameters:
coord - The compared cell coordinate
           (type=CellCoord)

__gt__(self, coord)
(Greater-than operator)

Overloading operator >
Parameters:
coord - The compared cell coordinate
           (type=CellCoord)

__hash__(self)
(Hashing function)

Hash function to be used by built-in python's dictionnaries.

__le__(self, coord)
(Less-than-or-equals operator)

Overloading operator <=
Parameters:
coord - The compared cell coordinate
           (type=CellCoord)

__lt__(self, coord)
(Less-than operator)

Overloading operator <
Parameters:
coord - The compared cell coordinate
           (type=CellCoord)

__ne__(self, obj)

Overloading operator !=
Parameters:
obj - The compared cell coordinate
           (type=Object)

clone(self)

Returns a copy of this object
Returns:
CellCoord

Generated by Epydoc 2.1 on Tue Aug 17 18:20:07 2004 http://epydoc.sf.net