Skip to content

Commit

Permalink
further refactoring of variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Luxen committed Oct 15, 2013
1 parent 7152ab3 commit d562132
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions RoutingAlgorithms/BasicRoutingInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BasicRoutingInterface : boost::noncopyable {
}
}

if( (distance-edge_expansion_offset) > *upper_bound){
if( (distance-edge_expansion_offset) > *upper_bound ){
forward_heap.DeleteAll();
return;
}
Expand All @@ -81,8 +81,8 @@ class BasicRoutingInterface : boost::noncopyable {
++edge
) {
const typename DataFacadeT::EdgeData & data = facade->GetEdgeData(edge);
bool backwardDirectionFlag = (!forward_direction) ? data.forward : data.backward;
if(backwardDirectionFlag) {
bool reverse_flag = (!forward_direction) ? data.forward : data.backward;
if( reverse_flag ) {
const NodeID to = facade->GetTarget(edge);
const int edge_weight = data.distance;

Expand All @@ -99,7 +99,7 @@ class BasicRoutingInterface : boost::noncopyable {
for ( EdgeID edge = facade->BeginEdges( node ); edge < facade->EndEdges(node); ++edge ) {
const typename DataFacadeT::EdgeData & data = facade->GetEdgeData(edge);
bool forward_directionFlag = (forward_direction ? data.forward : data.backward );
if(forward_directionFlag) {
if( forward_directionFlag ) {

const NodeID to = facade->GetTarget(edge);
const int edge_weight = data.distance;
Expand Down Expand Up @@ -152,7 +152,7 @@ class BasicRoutingInterface : boost::noncopyable {
}
}

if(smaller_edge_id == SPECIAL_EDGEID){
if( SPECIAL_EDGEID == smaller_edge_id ){
for(EdgeID eit = facade->BeginEdges(edge.second); eit < facade->EndEdges(edge.second); ++eit){
const int weight = facade->GetEdgeData(eit).distance;
if(
Expand Down Expand Up @@ -214,7 +214,7 @@ class BasicRoutingInterface : boost::noncopyable {
}
}

if(smaller_edge_id == SPECIAL_EDGEID){
if( SPECIAL_EDGEID == smaller_edge_id ){
for(EdgeID eit = facade->BeginEdges(edge.second);eit < facade->EndEdges(edge.second);++eit){
const int weight = facade->GetEdgeData(eit).distance;
if(
Expand Down

0 comments on commit d562132

Please sign in to comment.