#ifndef CLASS_POINT #define CLASS_POINT #include #include using namespace std; /* * =========================================================================== * Point Class Definition * =========================================================================== */ class Point { public: Point(); // Default constructor Point(double pX, double pY); Point(const Point& pSrc); // Copy constructor ~Point(); // Destructor bool operator==(const Point& pSrc); bool operator!=(const Point& pSrc); bool operator==(const double pVal); bool operator!=(const double pVal); bool operator<(const Point& pSrc); bool operator<=(const Point& pSrc); bool operator>(const Point& pSrc); bool operator>=(const Point& pSrc); bool operator<(const double pVal); bool operator<=(const double pVal); bool operator>(const double pVal); bool operator>=(const double pVal); Point& operator=(const Point& pSrc); Point operator+(const Point& pSrc); Point operator-(const Point& pSrc); double getX(); // "Getter" and "setter" member functions double getY(); void setX(double pVal); void setY(double pVal); double distance() const; // Other member function static void printInstances(); private: double mX; // Private data double mY; static unsigned int mInstanceCount; }; #endif