blob: 4b010c71030b028a995619cf44dae38510fa0fbb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
#include "common.h"
namespace NReverseGeocoder {
struct Y_PACKED TRegion {
TGeoId RegionId;
TNumber KvsOffset;
TNumber KvsNumber;
TSquare Square;
TNumber PolygonsNumber;
ui32 Unused;
bool operator==(const TRegion& r) const {
return RegionId == r.RegionId;
}
bool operator<(const TRegion& r) const {
return RegionId < r.RegionId;
}
bool operator<(const TGeoId& r) const {
return RegionId < r;
}
friend bool operator<(const TGeoId& regionId, const TRegion& r) {
return regionId < r.RegionId;
}
bool Better(const TRegion& r) const {
return Square < r.Square;
}
};
static_assert(sizeof(TRegion) == 32, "NReverseGeocoder::TRegion size mismatch");
}
|