<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Peter, <br>
<br>
I was reading the source code of GraphHopperStorage.EdgeIterable<br>
<a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/storage/GraphHopperStorage.java">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/storage/GraphHopperStorage.java</a><br>
<br>
I'v seen a fragment of code I do not understand, <br>
and I wonder if it has some hidden consequences on my understanding
on the storages of GraphHopper. <br>
<br>
It is the method "EdgeIterable.setFlags". In this method, the flags
of the edges are indeed set, <br>
but the edge is also written again on the storage through a call to
writeEdge. <br>
<br>
@Override<br>
public final EdgeIteratorState setFlags( long fl )<br>
{<br>
int nep = edges.getInt(getLinkPosInEdgeArea(baseNode,
node, edgePointer));<br>
int neop = edges.getInt(getLinkPosInEdgeArea(node,
baseNode, edgePointer));<br>
writeEdge(getEdge(), baseNode, node, nep, neop);<br>
GraphHopperStorage.this.setFlags(edgePointer, baseNode,
node, fl);<br>
return this;<br>
}<br>
<br>
Can you help me?<br>
thank you very much. <br>
<br>
<div class="moz-signature">-- <br>
<table cellspacing="0" width="400">
<tbody>
<tr>
<td colspan="2" style="border-left: 1px solid rgb(0, 102,
0); background-color: rgb(255, 255, 255); font-family:
arial; font-style: normal; font-variant: normal;
font-weight: normal; font-size: 14px; line-height: normal;
font-size-adjust: none; font-stretch: normal;
vertical-align: top;"> <b>Renaud De Landtsheer, Ir, Phd</b>
</td>
</tr>
<tr>
<td colspan="2" style="border-left: 1px solid rgb(0, 102,
0); background-color: rgb(255, 255, 255); font-family:
arial; font-style: italic; font-variant: normal;
font-weight: normal; font-size: 14px; line-height: normal;
font-size-adjust: none; font-stretch: normal;
vertical-align: top;">Senior R&D Expert</td>
</tr>
<tr>
<td colspan="2" style="border-left: 1px solid rgb(0, 102,
0); background-color: rgb(255, 255, 255); font-family:
arial; font-style: normal; font-variant: small-caps;
font-weight: normal; font-size: 14px; line-height: normal;
font-size-adjust: none; font-stretch: normal;
vertical-align: top;">
CETIC <br>
Rue des Frères Wright, 29/3 <br>
B-6041 Charleroi <br>
Phone: +32 71 490 754 </td>
</tr>
<tr>
<td colspan="2" style="border-top: 1px solid rgb(0, 102, 0);
background-color: rgb(255, 255, 255); font-family: arial;
font-style: italic; font-variant: normal; font-weight:
normal; font-size: 12px; line-height: normal;
font-size-adjust: none; font-stretch: normal;
vertical-align: top;" align="top">
<p><br>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>