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

Method GetTwins

libs/routing/world_graph.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void WorldGraph::GetTwins(Segment const & segment, bool isOutgoing, bool useRoutingOptions, SegmentEdgeListT & edges)
15{
16 std::vector<Segment> twins;
17 GetTwinsInner(segment, isOutgoing, twins);
18
19 CHECK_NOT_EQUAL(GetMode(), WorldGraphMode::LeapsOnly, ());
20
21 auto prevMode = GetMode();
22 SetMode(WorldGraphMode::SingleMwm);
23
24 for (Segment const & twin : twins)
25 GetEdgeList(twin, isOutgoing, useRoutingOptions, edges);
26
27 SetMode(prevMode);
28}
29
30RoutingOptions WorldGraph::GetRoutingOptions(Segment const & /* segment */)
31{

Callers 2

GetTwinsInnerMethod · 0.45
GetTwinsInnerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected