ESA JPIP server
0.1
|
Represents a couple of integer values that can be used to identify a coordinate as well as a size. More...
#include <point.h>
Public Member Functions | |
Point () | |
Initializes the object. More... | |
Point (int x, int y) | |
Initializes the object. More... | |
Point (const Point &p) | |
Copy constructor. More... | |
Point & | operator= (const Point &p) |
Copy assignment. More... | |
Point & | operator++ () |
Increments by one the two values. More... | |
Point & | operator-- () |
Decrements by one the two values. More... | |
Point & | operator+= (int val) |
Increments the two values. More... | |
Point & | operator-= (int val) |
Decrements the two values. More... | |
Point & | operator*= (int val) |
Multiplies the two values by one value. More... | |
Point & | operator/= (int val) |
Divides the two values by one value. More... | |
template<typename T > | |
T & | SerializeWith (T &stream) |
virtual | ~Point () |
Public Attributes | |
int | x |
Value X. More... | |
int | y |
Value Y. More... | |
Friends | |
Point | operator+ (const Point &a, int value) |
Returns the sum of a point with an integer value. More... | |
Point | operator- (const Point &a, int value) |
Returns the subtraction of a point with an integer value. More... | |
Point | operator* (const Point &a, int value) |
Returns the multiplication of a point with an integer value. More... | |
Point | operator/ (const Point &a, int value) |
Returns the division of a point with an integer value. More... | |
Point | operator+ (const Point &a, const Point &b) |
Returns the sum of two points. More... | |
Point | operator- (const Point &a, const Point &b) |
Returns the subtraction of two points. More... | |
Point | operator* (const Point &a, const Point &b) |
Returns the multiplication of two points. More... | |
Point | operator/ (const Point &a, const Point &b) |
Returns the division of two points. More... | |
bool | operator== (const Point &a, const Point &b) |
Returns true if the two points are equal. More... | |
bool | operator!= (const Point &a, const Point &b) |
Returns true if the two points are not equal. More... | |
ostream & | operator<< (ostream &out, const Point &point) |
Represents a couple of integer values that can be used to identify a coordinate as well as a size.
This class can be printed and serialized.
|
inline |
Initializes the object.
|
inline |
Initializes the object.
x | Value X. |
y | Value Y. |
|
inline |
Copy constructor.
|
inlinevirtual |
|
inline |
Multiplies the two values by one value.
val | Value to multiply. |
|
inline |
Increments by one the two values.
|
inline |
Increments the two values.
val | Value to increment. |
|
inline |
Decrements by one the two values.
|
inline |
Decrements the two values.
val | Value to decrement. |
|
inline |
Divides the two values by one value.
val | Value to divide. |
|
inline |
Returns true
if the two points are not equal.
Returns the multiplication of a point with an integer value.
The value is multiplied to the two values of the point.
Returns the multiplication of two points.
The operation is applied each value of each point.
Returns the sum of a point with an integer value.
The value is added to the two values of the point.
Returns the sum of two points.
The operation is applied each value of each point.
Returns the subtraction of a point with an integer value.
The value is subtracted from the two values of the point.
Returns the subtraction of two points.
The operation is applied each value of each point.
Returns the division of a point with an integer value.
The value is divided to the two values of the point.
Returns the division of two points.
The operation is applied each value of each point.
|
friend |
Returns true
if the two points are equal.
int jpeg2000::Point::x |
Value X.
int jpeg2000::Point::y |
Value Y.