![]() |
libimgdoc2
|
#include <ITileCoordinate.h>
Public Member Functions | |
virtual bool | TryGetCoordinate (imgdoc2::Dimension dim, int *coordVal) const =0 |
virtual void | EnumCoordinates (const std::function< bool(imgdoc2::Dimension, int)> &f) const =0 |
void | EnumDimensions (const std::function< bool(imgdoc2::Dimension)> &f) const |
bool | operator== (const ITileCoordinate &other) const |
bool | operator!= (const ITileCoordinate &other) const |
std::vector< imgdoc2::Dimension > | GetDimensions () const |
Static Public Member Functions | |
static bool | AreEqual (const ITileCoordinate *a, const ITileCoordinate *b) |
static bool | IsValidDimension (imgdoc2::Dimension dimension) |
Definition of the interface representing a "tile coordinate". This interface is immutable and does not allow to mutate the data.
|
inlinestatic |
Determine if the two specified ITileCoordinate objects are equal. Equality is defined as having the same set of dimensions and the same values for each dimension. In addition, object identity is also regarded as equality, but comparison with nullptr is not regarded as equality (also - two nullptrs are regarded as unequal).
a | The first ITileCoordinate to compare. |
b | The second ITileCoordinate to compare. |
|
pure virtual |
Enum the dimensions and the coordinates represented by this object.
f | A functor which is called for each item, passing in the dimension and the coordinate. If the functor returns false, the enumeration is ended. |
Implemented in imgdoc2::TileCoordinate.
|
inline |
Enum the dimensions represented in this object.
f | A functor which is called for each dimension. If the functor returns false, the enumeration is ended. |
|
inline |
Gets a vector with the dimensions contained in this object.
|
inlinestatic |
Queries if the specified value is a legal dimension. Legal dimensions are a-z and A-Z.
dimension | The dimension. |
|
inline |
Inequality operator.
other | The other object to compare to. |
|
inline |
Equality operator.
other | The other object to compare to. |
|
pure virtual |
Attempts to get the value for the specified dimensions.
dim | The dimension to query. | |
[in,out] | coordVal | If non-null and the call is successful, the coordinate value is put here. |
Implemented in imgdoc2::TileCoordinate.