use EdgeWeight typedef where possible

This commit is contained in:
Dennis Luxen 2014-06-03 11:28:39 +02:00
parent a4689c7a27
commit 6a29168c14

View File

@ -39,7 +39,7 @@ struct SegmentInformation
{ {
FixedPointCoordinate location; FixedPointCoordinate location;
NodeID name_id; NodeID name_id;
unsigned duration; EdgeWeight duration;
float length; float length;
short bearing; // more than enough [0..3600] fits into 12 bits short bearing; // more than enough [0..3600] fits into 12 bits
TurnInstruction turn_instruction; TurnInstruction turn_instruction;
@ -48,7 +48,7 @@ struct SegmentInformation
explicit SegmentInformation(const FixedPointCoordinate &location, explicit SegmentInformation(const FixedPointCoordinate &location,
const NodeID name_id, const NodeID name_id,
const unsigned duration, const EdgeWeight duration,
const float length, const float length,
const TurnInstruction turn_instruction, const TurnInstruction turn_instruction,
const bool necessary, const bool necessary,
@ -60,7 +60,7 @@ struct SegmentInformation
explicit SegmentInformation(const FixedPointCoordinate &location, explicit SegmentInformation(const FixedPointCoordinate &location,
const NodeID name_id, const NodeID name_id,
const unsigned duration, const EdgeWeight duration,
const float length, const float length,
const TurnInstruction turn_instruction) const TurnInstruction turn_instruction)
: location(location), name_id(name_id), duration(duration), length(length), bearing(0), : location(location), name_id(name_id), duration(duration), length(length), bearing(0),