MCPcopy Create free account
hub / github.com/comaps/comaps / GetSerialId

Method GetSerialId

libs/base/geo_object_id.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22GeoObjectId::GeoObjectId(Type type, uint64_t id) : m_encodedId((static_cast<uint64_t>(type) << 56) | id) {}
23
24uint64_t GeoObjectId::GetSerialId() const
25{
26 ASSERT_NOT_EQUAL(m_encodedId & kTypeMask, 0, ());
27 ASSERT_EQUAL(m_encodedId & kReservedMask, 0, ());
28 return m_encodedId & kSerialMask;
29}
30
31uint64_t GeoObjectId::GetEncodedId() const
32{

Callers 10

ProcessMethod · 0.80
operator()Method · 0.80
IsRoadExistsMethod · 0.80
FindAllBuildingPartsMethod · 0.80
FindTopRelationMethod · 0.80
GetOsmIDFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80
SerializeV0Method · 0.80
UNIT_TESTFunction · 0.80
CalcBitsPerCrossMwmIdMethod · 0.80

Calls

no outgoing calls

Tested by 2

UNIT_CLASS_TESTFunction · 0.64
UNIT_TESTFunction · 0.64