| 76 | }; |
| 77 | |
| 78 | struct RoutePattern |
| 79 | { |
| 80 | RoutePattern() = default; |
| 81 | |
| 82 | RoutePattern(double dashLength, double gapLength) : m_isDashed(true), m_dashLength(dashLength), m_gapLength(gapLength) |
| 83 | {} |
| 84 | |
| 85 | bool operator==(RoutePattern const & pattern) const |
| 86 | { |
| 87 | double constexpr kEps = 1e-5; |
| 88 | return m_isDashed == pattern.m_isDashed && std::fabs(m_dashLength - pattern.m_dashLength) < kEps && |
| 89 | std::fabs(m_gapLength - pattern.m_gapLength) < kEps; |
| 90 | } |
| 91 | |
| 92 | bool m_isDashed = false; |
| 93 | double m_dashLength = 0.0; |
| 94 | double m_gapLength = 0.0; |
| 95 | }; |
| 96 | |
| 97 | enum class SubrouteStyleType |
| 98 | { |
no outgoing calls
no test coverage detected