2005-05-23 04:52:37 +02:00
|
|
|
#ifndef __POINT_H_
|
|
|
|
#define __POINT_H_
|
|
|
|
|
|
|
|
class Point
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int x, y;
|
|
|
|
Point(void);
|
|
|
|
Point(int x, int y);
|
|
|
|
~Point(void);
|
|
|
|
bool operator<(const Point& p) const;
|
2005-12-11 03:09:11 +01:00
|
|
|
bool operator==(const Point& p) const;
|
|
|
|
operator size_t() const; // cheap hack to provide a hash function
|
2005-05-23 04:52:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|