mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +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:
@@ -24,8 +24,7 @@ public:
|
||||
, m_numAccessChanges(numAccessChanges)
|
||||
, m_numAccessConditionalPenalties(numAccessConditionalPenalties)
|
||||
, m_transitTime(transitTime)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
static RouteWeight FromCrossMwmWeight(double weight) { return RouteWeight(weight); }
|
||||
|
||||
@@ -58,17 +57,15 @@ public:
|
||||
ASSERT_NOT_EQUAL(m_numPassThroughChanges, std::numeric_limits<int8_t>::min(), ());
|
||||
ASSERT_NOT_EQUAL(m_numAccessChanges, std::numeric_limits<int8_t>::min(), ());
|
||||
ASSERT_NOT_EQUAL(m_numAccessConditionalPenalties, std::numeric_limits<int8_t>::min(), ());
|
||||
return RouteWeight(-m_weight, -m_numPassThroughChanges, -m_numAccessChanges,
|
||||
-m_numAccessConditionalPenalties, -m_transitTime);
|
||||
return RouteWeight(-m_weight, -m_numPassThroughChanges, -m_numAccessChanges, -m_numAccessConditionalPenalties,
|
||||
-m_transitTime);
|
||||
}
|
||||
|
||||
bool IsAlmostEqualForTests(RouteWeight const & rhs, double epsilon) const
|
||||
{
|
||||
return m_numPassThroughChanges == rhs.m_numPassThroughChanges &&
|
||||
m_numAccessChanges == rhs.m_numAccessChanges &&
|
||||
return m_numPassThroughChanges == rhs.m_numPassThroughChanges && m_numAccessChanges == rhs.m_numAccessChanges &&
|
||||
m_numAccessConditionalPenalties == rhs.m_numAccessConditionalPenalties &&
|
||||
AlmostEqualAbs(m_weight, rhs.m_weight, epsilon) &&
|
||||
AlmostEqualAbs(m_transitTime, rhs.m_transitTime, epsilon);
|
||||
AlmostEqualAbs(m_weight, rhs.m_weight, epsilon) && AlmostEqualAbs(m_transitTime, rhs.m_transitTime, epsilon);
|
||||
}
|
||||
|
||||
friend std::ostream & operator<<(std::ostream & os, RouteWeight const & routeWeight);
|
||||
|
||||
Reference in New Issue
Block a user