core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -11,7 +11,7 @@
#include <iosfwd>
#include <cassert>
namespace mbgl {
namespace mln {
class OverscaledTileID;
class CanonicalTileID;
@@ -262,23 +262,23 @@ inline float UnwrappedTileID::pixelsToTileUnits(const float pixelValue, const fl
(static_cast<float>(util::tileSize_D) * std::pow(2.f, zoom - canonical.z)));
}
} // namespace mbgl
} // namespace mln
namespace std {
template <>
struct hash<mbgl::CanonicalTileID> {
size_t operator()(const mbgl::CanonicalTileID& id) const noexcept;
struct hash<mln::CanonicalTileID> {
size_t operator()(const mln::CanonicalTileID& id) const noexcept;
};
template <>
struct hash<mbgl::UnwrappedTileID> {
size_t operator()(const mbgl::UnwrappedTileID& id) const noexcept;
struct hash<mln::UnwrappedTileID> {
size_t operator()(const mln::UnwrappedTileID& id) const noexcept;
};
template <>
struct hash<mbgl::OverscaledTileID> {
size_t operator()(const mbgl::OverscaledTileID& id) const noexcept;
struct hash<mln::OverscaledTileID> {
size_t operator()(const mln::OverscaledTileID& id) const noexcept;
};
} // namespace std

View File

@@ -1,6 +1,6 @@
#pragma once
namespace mbgl {
namespace mln {
// Tiles can have two states: optional or required.
// - optional means that only low-cost actions should be taken to obtain the data
@@ -12,4 +12,4 @@ enum class TileNecessity : bool {
Required = true,
};
} // namespace mbgl
} // namespace mln

View File

@@ -1,7 +1,7 @@
#pragma once
#include <cstdint>
namespace mbgl {
namespace mln {
enum class TileOperation : uint8_t {
RequestedFromCache, ///< A read request from the cache
RequestedFromNetwork, ///< A read request from the online source
@@ -13,4 +13,4 @@ enum class TileOperation : uint8_t {
Cancelled, ///< Loading of a tile was cancelled
NullOp, ///< No operation has taken place
};
} // namespace mbgl
} // namespace mln