reformat to cut long line
This commit is contained in:
parent
a4db678895
commit
8104a8aea1
@ -36,29 +36,25 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "../DataStructures/SegmentInformation.h"
|
||||
#include "../DataStructures/TurnInstructions.h"
|
||||
|
||||
DescriptionFactory::DescriptionFactory() : entireLength(0)
|
||||
{
|
||||
via_indices.push_back(0);
|
||||
}
|
||||
|
||||
std::vector<unsigned> const & DescriptionFactory::GetViaIndices() const
|
||||
{
|
||||
return via_indices;
|
||||
}
|
||||
DescriptionFactory::DescriptionFactory() : entireLength(0) { via_indices.push_back(0); }
|
||||
|
||||
std::vector<unsigned> const &DescriptionFactory::GetViaIndices() const { return via_indices; }
|
||||
|
||||
void DescriptionFactory::SetStartSegment(const PhantomNode &source, const bool traversed_in_reverse)
|
||||
{
|
||||
start_phantom = source;
|
||||
const EdgeWeight segment_duration = (traversed_in_reverse ? source.reverse_weight : source.forward_weight);
|
||||
AppendSegment(source.location, PathData(0, source.name_id, TurnInstruction::HeadOn, segment_duration));
|
||||
const EdgeWeight segment_duration =
|
||||
(traversed_in_reverse ? source.reverse_weight : source.forward_weight);
|
||||
AppendSegment(source.location,
|
||||
PathData(0, source.name_id, TurnInstruction::HeadOn, segment_duration));
|
||||
BOOST_ASSERT(path_description.back().duration == segment_duration);
|
||||
}
|
||||
|
||||
void DescriptionFactory::SetEndSegment(const PhantomNode &target, const bool traversed_in_reverse)
|
||||
{
|
||||
target_phantom = target;
|
||||
const EdgeWeight segment_duration = (traversed_in_reverse ? target.reverse_weight : target.forward_weight);
|
||||
const EdgeWeight segment_duration =
|
||||
(traversed_in_reverse ? target.reverse_weight : target.forward_weight);
|
||||
path_description.emplace_back(
|
||||
target.location, target.name_id, segment_duration, 0, TurnInstruction::NoTurn, true, true);
|
||||
BOOST_ASSERT(path_description.back().duration == segment_duration);
|
||||
|
Loading…
Reference in New Issue
Block a user