olp-cpp-sdk  1.22.0
TileTreeTraverse.h
1 /*
2  * Copyright (C) 2019-2020 HERE Europe B.V.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * SPDX-License-Identifier: Apache-2.0
17  * License-Filename: LICENSE
18  */
19 #pragma once
20 
21 #include <olp/core/geo/Types.h>
22 
23 namespace olp {
24 namespace geo {
25 
29 class CORE_API TileTreeTraverse {
30  public:
32  using Node = TileKey;
35 
41  explicit TileTreeTraverse(const ISubdivisionScheme& sub_division_scheme);
42 
50  NodeContainer SubNodes(const Node& node) const;
51 
52  private:
53  const ISubdivisionScheme& sub_division_scheme_;
54 };
55 
56 } // namespace geo
57 } // namespace olp
An abstract tiling subdivision scheme.
Definition: ISubdivisionScheme.h:33
A container of child tiles.
Definition: SubTiles.h:35
Addresses a tile in a quadtree.
Definition: TileKey.h:63
A container of subtiles for a tile.
Definition: TileTreeTraverse.h:29
NodeContainer SubNodes(const Node &node) const
Creates a container of subtiles for a tile.
TileTreeTraverse(const ISubdivisionScheme &sub_division_scheme)
Creates a TileTreeTraverse instance.
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24