Fix formatting
This commit is contained in:
@@ -28,6 +28,6 @@ const double constexpr INCREASES_BY_FOURTY_PERCENT = 1.4;
|
||||
|
||||
const int constexpr MAX_SLIPROAD_THRESHOLD = 250;
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_CONSTANTS_HPP_
|
||||
|
||||
@@ -33,6 +33,6 @@ class DrivewayHandler final : public IntersectionHandler
|
||||
Intersection intersection) const override final;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /* OSRM_GUIDANCE_DRIVEWAY_HANDLER_HPP */
|
||||
|
||||
@@ -47,6 +47,6 @@ inline void writeTurnData(const boost::filesystem::path &path,
|
||||
writer.WriteFrom("/common/connectivity_checksum", connectivity_checksum);
|
||||
serialization::write(writer, "/common/turn_data", turn_data);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::files
|
||||
|
||||
#endif
|
||||
|
||||
@@ -43,6 +43,6 @@ void annotateTurns(const util::NodeBasedDynamicGraph &node_based_graph,
|
||||
EntryClassesMap &entry_class_hash,
|
||||
std::uint32_t &connectivity_checksum);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif
|
||||
|
||||
@@ -120,6 +120,6 @@ inline std::string toString(const ConnectedRoad &road)
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /* OSRM_GUIDANCE_INTERSECTION_HPP_*/
|
||||
|
||||
@@ -658,6 +658,6 @@ std::size_t IntersectionHandler::findObviousTurn(const EdgeID via_edge,
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_INTERSECTION_HANDLER_HPP_*/
|
||||
|
||||
@@ -58,6 +58,6 @@ inline bool isThroughStreet(const std::size_t index,
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_IS_THROUGH_STREET_HPP_*/
|
||||
|
||||
@@ -56,6 +56,6 @@ class MotorwayHandler final : public IntersectionHandler
|
||||
Intersection fallback(Intersection intersection) const;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_MOTORWAY_HANDLER_HPP_*/
|
||||
|
||||
@@ -101,6 +101,6 @@ inline std::string applyAccessTokens(std::string lane_string, const std::string
|
||||
return result_string;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::extractor::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_PARSING_TOOLKIT_HPP_
|
||||
|
||||
@@ -82,6 +82,6 @@ class RoundaboutHandler final : public IntersectionHandler
|
||||
const extractor::intersection::CoordinateExtractor coordinate_extractor;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_ROUNDABOUT_HANDLER_HPP_*/
|
||||
|
||||
@@ -10,6 +10,6 @@ enum class RoundaboutType
|
||||
Rotary, // traffic circle (large roundabout) with dedicated name
|
||||
RoundaboutIntersection // small roundabout with distinct turns, handled as intersection
|
||||
};
|
||||
} /* namespace osrm */
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /* OSRM_EXTRACTOR_GUIDANCE_ROUNDABOUT_TYPES_HPP_ */
|
||||
|
||||
@@ -45,6 +45,6 @@ inline void write(storage::tar::FileWriter &writer,
|
||||
storage::serialization::write(
|
||||
writer, name + "/post_turn_bearings", turn_data_container.post_turn_bearings);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::serialization
|
||||
|
||||
#endif
|
||||
|
||||
@@ -79,6 +79,6 @@ class SliproadHandler final : public IntersectionHandler
|
||||
const extractor::intersection::CoordinateExtractor coordinate_extractor;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_SLIPROAD_HANDLER_HPP_*/
|
||||
|
||||
@@ -105,6 +105,6 @@ class StatisticsHandler final : public IntersectionHandler
|
||||
mutable std::map<DirectionModifier::Enum, std::uint64_t> modifier_hist;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_VALIDATION_HANDLER_HPP_
|
||||
|
||||
@@ -38,6 +38,6 @@ class SuppressModeHandler final : public IntersectionHandler
|
||||
Intersection intersection) const override final;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /* OSRM_GUIDANCE_SUPPRESS_MODE_HANDLER_HPP_ */
|
||||
|
||||
@@ -73,6 +73,6 @@ class TurnAnalysis
|
||||
setTurnTypes(const NodeID from, const EdgeID via_edge, Intersection intersection) const;
|
||||
}; // class TurnAnalysis
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_TURN_ANALYSIS
|
||||
|
||||
@@ -27,6 +27,6 @@ class TurnBearing
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /* OSRM_INCLUDE_GUIDANCE_TURN_BEARING_HPP_ */
|
||||
|
||||
@@ -15,6 +15,6 @@ namespace osrm::guidance
|
||||
std::pair<util::guidance::EntryClass, util::guidance::BearingClass>
|
||||
classifyIntersection(Intersection intersection, const osrm::util::Coordinate &location);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_TURN_CLASSIFICATION_HPP_
|
||||
|
||||
@@ -114,6 +114,6 @@ template <storage::Ownership Ownership> class TurnDataContainerImpl
|
||||
using TurnDataExternalContainer = detail::TurnDataContainerImpl<storage::Ownership::External>;
|
||||
using TurnDataContainer = detail::TurnDataContainerImpl<storage::Ownership::Container>;
|
||||
using TurnDataView = detail::TurnDataContainerImpl<storage::Ownership::View>;
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif
|
||||
|
||||
@@ -42,7 +42,7 @@ bool findPreviousIntersection(
|
||||
EdgeID &result_via_edge,
|
||||
extractor::intersection::IntersectionView &result_intersection);
|
||||
|
||||
} // namespace guidance
|
||||
} // namespace guidance::lanes
|
||||
} // namespace osrm
|
||||
|
||||
#endif /*OSRM_GUIDANCE_TURN_DISCOVERY_HPP_*/
|
||||
|
||||
@@ -109,6 +109,6 @@ class TurnHandler final : public IntersectionHandler
|
||||
const std::size_t up_to) const;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif /*OSRM_GUIDANCE_TURN_HANDLER_HPP_*/
|
||||
|
||||
@@ -391,6 +391,6 @@ inline std::string instructionModifierToString(const DirectionModifier::Enum mod
|
||||
return detail::modifier_names[static_cast<std::size_t>(modifier)];
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance
|
||||
|
||||
#endif // OSRM_GUIDANCE_TURN_INSTRUCTION_HPP_
|
||||
|
||||
@@ -12,6 +12,6 @@ OSRM_ATTR_WARN_UNUSED
|
||||
LaneDataVector handleNoneValueAtSimpleTurn(LaneDataVector lane_data,
|
||||
const Intersection &intersection);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::lanes
|
||||
|
||||
#endif /* OSRM_GUIDANCE_TURN_LANE_AUGMENTATION_HPP_ */
|
||||
|
||||
@@ -33,6 +33,6 @@ LaneDataVector::iterator findTag(const extractor::TurnLaneType::Mask tag, LaneDa
|
||||
|
||||
// Returns true if any of the queried tags is contained
|
||||
bool hasTag(const extractor::TurnLaneType::Mask tag, const LaneDataVector &data);
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::lanes
|
||||
|
||||
#endif /* OSRM_GUIDANCE_TURN_LANE_DATA_HPP_ */
|
||||
|
||||
@@ -133,6 +133,6 @@ class TurnLaneHandler
|
||||
LaneDataVector &lane_data) const;
|
||||
};
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::lanes
|
||||
|
||||
#endif // OSRM_EXTRACTOR_GUIDANCE_TURN_LANE_HANDLER_HPP_
|
||||
|
||||
@@ -41,6 +41,6 @@ Intersection triviallyMatchLanesToTurns(Intersection intersection,
|
||||
const LaneDescriptionID lane_string_id,
|
||||
util::guidance::LaneDataIdMap &lane_data_to_id);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::guidance::lanes
|
||||
|
||||
#endif /*OSRM_GUIDANCE_TURN_LANE_MATCHER_HPP_*/
|
||||
|
||||
Reference in New Issue
Block a user