mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -15,8 +15,10 @@ void JointIndex::Build(RoadIndex const & roadIndex, uint32_t numJoints)
|
||||
// Calculate sizes.
|
||||
// Example for numJoints = 6:
|
||||
// 2, 5, 3, 4, 2, 3, 0
|
||||
roadIndex.ForEachRoad([this, numJoints](uint32_t /* featureId */, RoadJointIds const & road) {
|
||||
road.ForEachJoint([this, numJoints](uint32_t /* pointId */, Joint::Id jointId) {
|
||||
roadIndex.ForEachRoad([this, numJoints](uint32_t /* featureId */, RoadJointIds const & road)
|
||||
{
|
||||
road.ForEachJoint([this, numJoints](uint32_t /* pointId */, Joint::Id jointId)
|
||||
{
|
||||
UNUSED_VALUE(numJoints);
|
||||
ASSERT_LESS(jointId, numJoints, ());
|
||||
++m_offsets[jointId];
|
||||
@@ -33,8 +35,10 @@ void JointIndex::Build(RoadIndex const & roadIndex, uint32_t numJoints)
|
||||
// Now fill points.
|
||||
// Offsets after this operation are begin bounds:
|
||||
// 0, 2, 7, 10, 14, 16, 19
|
||||
roadIndex.ForEachRoad([this](uint32_t featureId, RoadJointIds const & road) {
|
||||
road.ForEachJoint([this, featureId](uint32_t pointId, Joint::Id jointId) {
|
||||
roadIndex.ForEachRoad([this](uint32_t featureId, RoadJointIds const & road)
|
||||
{
|
||||
road.ForEachJoint([this, featureId](uint32_t pointId, Joint::Id jointId)
|
||||
{
|
||||
uint32_t & offset = m_offsets[jointId];
|
||||
--offset;
|
||||
m_points[offset] = {featureId, pointId};
|
||||
|
||||
Reference in New Issue
Block a user