reformatting DescriptionFactory.cpp
This commit is contained in:
		
							parent
							
								
									32191fb05a
								
							
						
					
					
						commit
						0341a0d5e7
					
				| @ -50,19 +50,21 @@ void DescriptionFactory::SetStartSegment(const PhantomNode &source, const bool t | |||||||
|     BOOST_ASSERT(path_description.back().duration == segment_duration); |     BOOST_ASSERT(path_description.back().duration == segment_duration); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void DescriptionFactory::SetEndSegment(const PhantomNode &target, const bool traversed_in_reverse, const bool is_via_location) | void DescriptionFactory::SetEndSegment(const PhantomNode &target, | ||||||
|  |                                        const bool traversed_in_reverse, | ||||||
|  |                                        const bool is_via_location) | ||||||
| { | { | ||||||
|     target_phantom = target; |     target_phantom = target; | ||||||
|     const EdgeWeight segment_duration = |     const EdgeWeight segment_duration = | ||||||
|         (traversed_in_reverse ? target.reverse_weight : target.forward_weight); |         (traversed_in_reverse ? target.reverse_weight : target.forward_weight); | ||||||
|     path_description.emplace_back( |     path_description.emplace_back(target.location, | ||||||
|         target.location, |                                   target.name_id, | ||||||
|         target.name_id, |                                   segment_duration, | ||||||
|         segment_duration, |                                   0.f, | ||||||
|         0.f, |                                   is_via_location ? TurnInstruction::ReachViaLocation | ||||||
|         is_via_location ? TurnInstruction::ReachViaLocation : TurnInstruction::NoTurn, |                                                   : TurnInstruction::NoTurn, | ||||||
|         true, |                                   true, | ||||||
|         true); |                                   true); | ||||||
|     BOOST_ASSERT(path_description.back().duration == segment_duration); |     BOOST_ASSERT(path_description.back().duration == segment_duration); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user