Unnecessary call by value. Change to call by reference
This commit is contained in:
parent
57809439a8
commit
af98879303
@ -58,15 +58,19 @@ public:
|
|||||||
NodeID getNumberOfNodes() const { return numberOfNodes; }
|
NodeID getNumberOfNodes() const { return numberOfNodes; }
|
||||||
NodeID getNumberOfNodes2() const { return int2ExtNodeMap->size(); }
|
NodeID getNumberOfNodes2() const { return int2ExtNodeMap->size(); }
|
||||||
|
|
||||||
inline void FindNearestNodeCoordForLatLon(const _Coordinate coord, _Coordinate& result) {
|
inline void FindNearestNodeCoordForLatLon(const _Coordinate& coord, _Coordinate& result) {
|
||||||
readOnlyGrid->FindNearestNodeInGraph(coord, result);
|
readOnlyGrid->FindNearestNodeInGraph(coord, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool FindRoutingStarts(const _Coordinate start, const _Coordinate target, PhantomNodes * phantomNodes) {
|
inline bool FindRoutingStarts(const _Coordinate &start, const _Coordinate &target, PhantomNodes * phantomNodes) {
|
||||||
readOnlyGrid->FindRoutingStarts(start, target, phantomNodes);
|
readOnlyGrid->FindRoutingStarts(start, target, phantomNodes);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool GetStartAndDestNodesOfEdge(const _Coordinate& coord, NodesOfEdge& nodesOfEdge) {
|
||||||
|
return readOnlyGrid->GetStartAndDestNodesOfEdge(coord, nodesOfEdge);
|
||||||
|
}
|
||||||
|
|
||||||
inline void FindNearestPointOnEdge(const _Coordinate & input, _Coordinate& output){
|
inline void FindNearestPointOnEdge(const _Coordinate & input, _Coordinate& output){
|
||||||
readOnlyGrid->FindNearestPointOnEdge(input, output);
|
readOnlyGrid->FindNearestPointOnEdge(input, output);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user