![]() |
ATLAS Offline Software
|
FilterRange implements the range (ie: [min, max]) the filters will use to take their filtering decisions. More...
#include <FilterRange.h>
Classes | |
| class | interval_t |
Public Member Functions | |
| FilterRange () | |
| Default constructor: it sets the minimum value to -infinity and the maximum value to +infinity. | |
| FilterRange (const FilterRange &range) | |
| Copy constructor: | |
| FilterRange (const double min, const double max) | |
| Constructor with parameters: | |
| virtual | ~FilterRange () |
| Destructor: | |
| FilterRange & | operator= (const FilterRange &obj) |
| Assignment operator: | |
| double | precision () const |
| Return the double precision for the comparaison of doubles. | |
| double | lower () const |
| Return the minimum value of the range. | |
| double | upper () const |
| Return the maximum value of the range. | |
| double | getMin () const |
| Return the minimum value of the range. | |
| double | getMax () const |
| Return the maximum value of the range. | |
| double | PLUS_INF () const |
| Define +infinity according to specific implementation. | |
| double | MINUS_INF () const |
| Define -infinity according to specific implementation. | |
| bool | isInRange (const double point) const |
| return Return true if the point is in range : min <= point <= max | |
| bool | isActive () const |
| return Return true if the range is active (optimize parsing of multiple ranges and returning the final decision) | |
| void | setPrecision (const double delta) |
| void | setRange (const double lower, const double upper) |
| Non-const methods: | |
| void | setMin (const double minValue) |
| void | setMax (const double maxValue) |
| void | include (const double xMin, const double xMax) |
| Add [xMin, xMax] interval to existing set of valid ranges. | |
| void | includeAll () |
| Set full range (from MINUS_INF to PLUS_INF ). | |
Protected Member Functions | |
| void | addRange (double xMin, double xMax) |
| add a new range [xmin,xmax] deleting previous ranges full contained | |
Protected Attributes | |
| std::optional< interval_t > | m_range |
| The interval wrapped by a std::optional. | |
| double | m_precision |
| Setup the wanted double precision. | |
FilterRange implements the range (ie: [min, max]) the filters will use to take their filtering decisions.
Internally it stores just the lower and upper bounds.
Definition at line 22 of file FilterRange.h.
|
inline |
Default constructor: it sets the minimum value to -infinity and the maximum value to +infinity.
Inline methods:
Constructors
Definition at line 166 of file FilterRange.h.
| FilterRange::FilterRange | ( | const FilterRange & | range | ) |
Copy constructor:
Public methods:
Copy constructor
Definition at line 23 of file FilterRange.cxx.
Constructor with parameters:
| min | : the minimum value of the range |
| max | : the maximum value of the range |
Definition at line 171 of file FilterRange.h.
|
inlinevirtual |
|
protected |
add a new range [xmin,xmax] deleting previous ranges full contained
Special case where one adds a no-op interval
Definition at line 81 of file FilterRange.cxx.
|
inline |
Return the maximum value of the range.
Definition at line 228 of file FilterRange.h.
|
inline |
Return the minimum value of the range.
Definition at line 223 of file FilterRange.h.
Add [xMin, xMax] interval to existing set of valid ranges.
| xMin | - lower bound of a new valid range |
| xMax | - upper bound of a new valid range |
Reset the whole range : this is temporary, just to mimic FML::RangeSet API
Definition at line 65 of file FilterRange.cxx.
| void FilterRange::includeAll | ( | ) |
Set full range (from MINUS_INF to PLUS_INF ).
Definition at line 72 of file FilterRange.cxx.
|
inline |
return Return true if the range is active (optimize parsing of multiple ranges and returning the final decision)
Definition at line 243 of file FilterRange.h.
| bool FilterRange::isInRange | ( | const double | point | ) | const |
return Return true if the point is in range : min <= point <= max
Const methods:
Definition at line 42 of file FilterRange.cxx.
|
inline |
Return the minimum value of the range.
Definition at line 205 of file FilterRange.h.
|
inline |
Define -infinity according to specific implementation.
Definition at line 238 of file FilterRange.h.
| FilterRange & FilterRange::operator= | ( | const FilterRange & | obj | ) |
Assignment operator:
Assignment operator.
Definition at line 29 of file FilterRange.cxx.
|
inline |
Define +infinity according to specific implementation.
Definition at line 233 of file FilterRange.h.
|
inline |
Return the double precision for the comparaison of doubles.
Definition at line 200 of file FilterRange.h.
|
inline |
Definition at line 262 of file FilterRange.h.
|
inline |
Definition at line 257 of file FilterRange.h.
|
inline |
Definition at line 252 of file FilterRange.h.
|
inline |
Return the maximum value of the range.
Definition at line 214 of file FilterRange.h.
|
protected |
|
protected |
The interval wrapped by a std::optional.
This is to allow the instantiation of uninitialised ranges
Definition at line 143 of file FilterRange.h.