Implementation of "tile coordinate object".
More...
#include <TileCoordinate.h>
Implementation of "tile coordinate object".
◆ TileCoordinate() [1/2]
imgdoc2::TileCoordinate::TileCoordinate |
( |
size_t |
reservedCapacity | ) |
|
|
inlineexplicit |
Constructor allowing to reserve size of the specified number of dimension. This is purely an opportunity for performance optimization, preventing a re-allocation should more dimensions be added than specified here.
- Parameters
-
reservedCapacity | The reserved capacity for the number of dimensions. |
◆ TileCoordinate() [2/2]
imgdoc2::TileCoordinate::TileCoordinate |
( |
std::initializer_list< DimensionAndValue > |
list | ) |
|
|
inline |
Constructor initializing the object with the specified list.
- Parameters
-
list | The initialization list. |
◆ Clear()
void imgdoc2::TileCoordinate::Clear |
( |
| ) |
|
|
inlineoverridevirtual |
◆ EnumCoordinates()
void imgdoc2::TileCoordinate::EnumCoordinates |
( |
const std::function< bool(imgdoc2::Dimension, int)> & |
f | ) |
const |
|
inlineoverridevirtual |
Enum the dimensions and the coordinates represented by this object.
- Parameters
-
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. |
Implements imgdoc2::ITileCoordinate.
◆ Set()
void imgdoc2::TileCoordinate::Set |
( |
imgdoc2::Dimension |
d, |
|
|
int |
value |
|
) |
| |
|
inlineoverridevirtual |
Sets the specified coordinate value for the specified dimension.
- Parameters
-
d | The dimension. |
value | The value. |
Implements imgdoc2::ITileCoordinateMutate.
◆ TryGetCoordinate()
bool imgdoc2::TileCoordinate::TryGetCoordinate |
( |
imgdoc2::Dimension |
dim, |
|
|
int * |
coordVal |
|
) |
| const |
|
inlineoverridevirtual |
Attempts to get the value for the specified dimensions.
- Parameters
-
| dim | The dimension to query. |
[in,out] | coordVal | If non-null and the call is successful, the coordinate value is put here. |
- Returns
- True if it succeeds, false if it fails.
Implements imgdoc2::ITileCoordinate.
The documentation for this class was generated from the following file: