| 123 | |
| 124 | |
| 125 | bool DimRange::valuePasses(double v) const |
| 126 | { |
| 127 | // Determine if a point passes a range. |
| 128 | bool fail = std::isnan(v) || |
| 129 | ((m_inclusive_lower_bound && v < m_lower_bound) || |
| 130 | (!m_inclusive_lower_bound && v <= m_lower_bound) || |
| 131 | (m_inclusive_upper_bound && v > m_upper_bound) || |
| 132 | (!m_inclusive_upper_bound && v >= m_upper_bound)); |
| 133 | if (m_negate) |
| 134 | fail = !fail; |
| 135 | return !fail; |
| 136 | } |
| 137 | |
| 138 | // Important - range list must be sorted. |
| 139 | // This applies OR logic when there are multiple ranges for the same |
no outgoing calls
no test coverage detected