[GraphHopper] question on GraphHopperStorage.EdgeIterable.setFlags
Peter K
peathal at yahoo.de
Mon Mar 17 09:59:40 UTC 2014
Hey Renaud,
indeed these first 3 lines are no longer necessary after I separated
setFlags and writing the edge. I'll fix.
Regards,
Peter.
> 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
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140317/43f55e7f/attachment.html>
More information about the GraphHopper
mailing list