1 #ifndef _JPEG2000_POINT_H_
2 #define _JPEG2000_POINT_H_
144 return Point(a.
x + value, a.
y + value);
153 return Point(a.
x - value, a.
y - value);
162 return Point(a.
x * value, a.
y * value);
171 return Point(a.
x / value, a.
y / value);
215 return ((a.
x == b.
x) && (a.
y == b.
y));
223 return ((a.
x != b.
x) || (a.
y != b.
y));
228 out <<
"(" << point.
x <<
", " << point.
y <<
")";
234 return (stream & x & y);
Point & operator--()
Decrements by one the two values.
Definition: point.h:78
friend Point operator/(const Point &a, const Point &b)
Returns the division of two points.
Definition: point.h:205
virtual ~Point()
Definition: point.h:237
friend Point operator-(const Point &a, const Point &b)
Returns the subtraction of two points.
Definition: point.h:187
Point Size
It is a synonymous of the class Point.
Definition: point.h:247
friend Point operator-(const Point &a, int value)
Returns the subtraction of a point with an integer value.
Definition: point.h:151
friend Point operator+(const Point &a, int value)
Returns the sum of a point with an integer value.
Definition: point.h:142
Point(int x, int y)
Initializes the object.
Definition: point.h:37
Point()
Initializes the object.
Definition: point.h:27
friend bool operator!=(const Point &a, const Point &b)
Returns true if the two points are not equal.
Definition: point.h:221
Point & operator+=(int val)
Increments the two values.
Definition: point.h:91
Point(const Point &p)
Copy constructor.
Definition: point.h:46
Point & operator=(const Point &p)
Copy assignment.
Definition: point.h:54
Point & operator*=(int val)
Multiplies the two values by one value.
Definition: point.h:117
friend bool operator==(const Point &a, const Point &b)
Returns true if the two points are equal.
Definition: point.h:213
friend Point operator*(const Point &a, const Point &b)
Returns the multiplication of two points.
Definition: point.h:196
friend Point operator+(const Point &a, const Point &b)
Returns the sum of two points.
Definition: point.h:178
T & SerializeWith(T &stream)
Definition: point.h:232
Point & operator-=(int val)
Decrements the two values.
Definition: point.h:104
Represents a couple of integer values that can be used to identify a coordinate as well as a size...
Definition: point.h:18
int y
Value Y.
Definition: point.h:22
Set of classes for handling (reading and indexing) image files with the format defined in the Part 1 ...
Definition: codestream_index.h:10
int x
Value X.
Definition: point.h:21
friend Point operator*(const Point &a, int value)
Returns the multiplication of a point with an integer value.
Definition: point.h:160
Point & operator/=(int val)
Divides the two values by one value.
Definition: point.h:130
friend Point operator/(const Point &a, int value)
Returns the division of a point with an integer value.
Definition: point.h:169
Point & operator++()
Increments by one the two values.
Definition: point.h:66
ostream & operator<<(ostream &out, const Request &request)
Definition: request.cc:65