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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user