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

Method Append

libs/routing/index_graph_starter.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void IndexGraphStarter::Append(FakeEdgesContainer const & container)
64{
65 m_finish = container.m_finish;
66 m_fake.Append(container.m_fake);
67
68 // It's important to calculate distance after m_fake.Append() because
69 // we don't have finish segment in fake graph before m_fake.Append().
70 auto const startPoint = GetPoint(GetStartSegment(), false /* front */);
71 auto const finishPoint = GetPoint(GetFinishSegment(), true /* front */);
72 m_startToFinishDistanceM = ms::DistanceOnEarth(startPoint, finishPoint);
73 m_fakeNumerationStart += container.m_fake.GetSize();
74}
75
76void IndexGraphStarter::SetGuides(GuidesGraph const & guides)
77{

Callers

nothing calls this directly

Calls 3

GetPointFunction · 0.85
DistanceOnEarthFunction · 0.50
GetSizeMethod · 0.45

Tested by

no test coverage detected