Move ComponentID to EdgeBasedNodeDataContainer
This commit is contained in:
committed by
Patrick Niklaus
parent
373087d74f
commit
26702920b4
@@ -34,6 +34,10 @@ class MockBaseDataFacade : public engine::datafacade::BaseDataFacade
|
||||
{
|
||||
return GeometryID{SPECIAL_GEOMETRYID, false};
|
||||
}
|
||||
ComponentID GetComponentID(const NodeID /* id */) const override
|
||||
{
|
||||
return ComponentID{INVALID_COMPONENTID, false};
|
||||
}
|
||||
TurnPenalty GetWeightPenaltyForEdgeID(const unsigned /* id */) const override final
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -137,7 +137,6 @@ template <unsigned NUM_NODES, unsigned NUM_EDGES> struct RandomGraphFixture
|
||||
if (used_edges.find(std::pair<unsigned, unsigned>(
|
||||
std::min(data.u, data.v), std::max(data.u, data.v))) == used_edges.end())
|
||||
{
|
||||
data.component.id = 0;
|
||||
edges.emplace_back(data);
|
||||
used_edges.emplace(std::min(data.u, data.v), std::max(data.u, data.v));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user