Skip to content

Commit 6bed933

Browse files
Debug: apply diff generated on CI
1 parent 9462daa commit 6bed933

File tree

1 file changed

+21
-14
lines changed
  • olp-cpp-sdk-core/include/olp/core/geo/tiling

1 file changed

+21
-14
lines changed

olp-cpp-sdk-core/include/olp/core/geo/tiling/TileKey.h

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ namespace geo {
4747
* To create a tile key, use `FromRowColumnLevel()`.
4848
*
4949
* For vertical navigation within the tree, use the following functions:
50-
* `Parent()`, `ChangedLevelBy()`, and `ChangedLevelTo()`. To navigate within a level, use
51-
* the `HasNextRow()`, `NextRow()`, `HasNextColumn()`, and `NextColumn()` functions.
52-
* To get the number of available rows and columns on the tile level, use `RowCount()` and
53-
* `ColumnCount()`.
50+
* `Parent()`, `ChangedLevelBy()`, and `ChangedLevelTo()`. To navigate within a
51+
* level, use the `HasNextRow()`, `NextRow()`, `HasNextColumn()`, and
52+
* `NextColumn()` functions. To get the number of available rows and columns on
53+
* the tile level, use `RowCount()` and `ColumnCount()`.
5454
*
55-
* You can also create tile keys from and converted them into various alternative formats:
55+
* You can also create tile keys from and converted them into various
56+
* alternative formats:
5657
*
5758
* - `ToQuadKey()` / `FromQuadKey()` – 4-based string representation.
5859
*
@@ -66,7 +67,7 @@ class CORE_API TileKey {
6667
enum { MaxLevel = LevelCount - 1 };
6768

6869
/**
69-
* @brief The main direction used to find a child node or
70+
* @brief The main direction used to find a child node or
7071
* the relationship to the parent.
7172
*
7273
* Corresponds directly to the index in the `GetChild` function.
@@ -115,13 +116,15 @@ class CORE_API TileKey {
115116
* instead (`ToQuadKey64()`).
116117
*/
117118
constexpr bool operator<(const TileKey& other) const {
118-
return level_ != other.level_ ? level_ < other.level_
119-
: row_ != other.row_ ? row_ < other.row_
120-
: column_ < other.column_;
119+
return level_ != other.level_
120+
? level_ < other.level_
121+
: row_ != other.row_ ? row_ < other.row_
122+
: column_ < other.column_;
121123
}
122124

123125
/**
124-
* @brief Creates a quad string from a tile key to later use it in REST API calls.
126+
* @brief Creates a quad string from a tile key to later use it in REST API
127+
* calls.
125128
*
126129
* If the tile is the root tile, the quadkey is '-'.
127130
* Otherwise, the string is a number to the base of 4 without the leading
@@ -142,11 +145,13 @@ class CORE_API TileKey {
142145
static TileKey FromQuadKey(const std::string& quad_key);
143146

144147
/**
145-
* @brief Creates a HERE tile code string from a tile key to later use it in REST API calls.
148+
* @brief Creates a HERE tile code string from a tile key to later use it in
149+
* REST API calls.
146150
*
147151
* The string is a quadkey Morton code.
148152
*
149-
* To convert the HERE tile code string back into the tile key, use `FromHereTile()`.
153+
* To convert the HERE tile code string back into the tile key, use
154+
* `FromHereTile()`.
150155
*/
151156
std::string ToHereTile() const;
152157

@@ -160,7 +165,8 @@ class CORE_API TileKey {
160165
/**
161166
* @brief Creates a 64-bit Morton code from a tile key.
162167
*
163-
* To convert the 64-bit Morton code back into the tile key, use `FromQuadKey64()`.
168+
* To convert the 64-bit Morton code back into the tile key, use
169+
* `FromQuadKey64()`.
164170
*/
165171
std::uint64_t ToQuadKey64() const;
166172

@@ -174,7 +180,8 @@ class CORE_API TileKey {
174180
/**
175181
* @brief Creates a tile key.
176182
*
177-
* @param row The requested row. Must be less than 2 to the power of the level.
183+
* @param row The requested row. Must be less than 2 to the power of the
184+
* level.
178185
* @param column The requested column. Must be less than 2 to the power of
179186
* the level.
180187
* @param level The requested level.

0 commit comments

Comments
 (0)