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

Method Import

libs/routing/road_index.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace routing
4{
5void RoadIndex::Import(std::vector<Joint> const & joints)
6{
7 for (Joint::Id jointId = 0; jointId < joints.size(); ++jointId)
8 {
9 Joint const & joint = joints[jointId];
10 for (uint32_t i = 0; i < joint.GetSize(); ++i)
11 {
12 RoadPoint const & entry = joint.GetEntry(i);
13 RoadJointIds & roadJoints = m_roads[entry.GetFeatureId()];
14 roadJoints.AddJoint(entry.GetPointId(), jointId);
15 }
16 }
17}
18} // namespace routing

Callers 5

BuildGraphMethod · 0.45
BuildIndexGraphFunction · 0.45
UNIT_TESTFunction · 0.45
BuildWorldGraphFunction · 0.45
BuildIndexGraphFunction · 0.45

Calls 5

sizeMethod · 0.45
GetSizeMethod · 0.45
GetFeatureIdMethod · 0.45
AddJointMethod · 0.45
GetPointIdMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36