[GraphHopper] question on GraphHopperStorage.EdgeIterable.setFlags
Renaud De Landtsheer
renaud.delandtsheer at cetic.be
Mon Mar 17 08:54:05 UTC 2014
Hi Peter,
I was reading the source code of GraphHopperStorage.EdgeIterable
https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/storage/GraphHopperStorage.java
I'v seen a fragment of code I do not understand,
and I wonder if it has some hidden consequences on my understanding on
the storages of GraphHopper.
It is the method "EdgeIterable.setFlags". In this method, the flags of
the edges are indeed set,
but the edge is also written again on the storage through a call to
writeEdge.
@Override
public final EdgeIteratorState setFlags( long fl )
{
int nep = edges.getInt(getLinkPosInEdgeArea(baseNode, node,
edgePointer));
int neop = edges.getInt(getLinkPosInEdgeArea(node,
baseNode, edgePointer));
writeEdge(getEdge(), baseNode, node, nep, neop);
GraphHopperStorage.this.setFlags(edgePointer, baseNode,
node, fl);
return this;
}
Can you help me?
thank you very much.
--
*Renaud De Landtsheer, Ir, Phd*
Senior R&D Expert
CETIC
Rue des Frères Wright, 29/3
B-6041 Charleroi
Phone: +32 71 490 754
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140317/d7787243/attachment.html>
More information about the GraphHopper
mailing list