Skip to content

Commit

Permalink
moving common code to parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Luxen committed Oct 15, 2013
1 parent 687e58e commit 1dab0eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RoutingAlgorithms/BasicRoutingInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ class BasicRoutingInterface : boost::noncopyable {
packed_path.push_back(current_node_id);
}
}

int ComputeEdgeOffset(const PhantomNode & phantom) const {
return phantom.weight1 + (phantom.isBidirected() ? phantom.weight2 : 0);
}

};

#endif /* BASICROUTINGINTERFACE_H_ */

0 comments on commit 1dab0eb

Please sign in to comment.