RAIDA  1.9.0
IRangeSetROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IRANGESETROOT_H
3 #define AIDA_IRANGESETROOT_H 1
4 
5 #include <AIDA/IRangeSet.h>
6 #include <vector>
7 
8 namespace AIDA {
9 
33 class IRangeSetROOT : public IRangeSet {
34 
35 public:
37  virtual ~IRangeSetROOT() { /* nop */; }
38 
39  IRangeSetROOT() { /* nop */; }
40 
45  virtual const std::vector<double> & lowerBounds() ;
46 
51  virtual const std::vector<double> & upperBounds() ;
52 
58  virtual void include(double xMin, double xMax) ;
59 
65  virtual void exclude(double xMin, double xMax) ;
66 
70  virtual void includeAll() ;
71 
75  virtual void excludeAll() ;
76 
77  /*
78  * @return Return true if the point is in range
79  */
80  virtual bool isInRange(double point) ;
81 
87  virtual int size() ;
88 
89  /*
90  * Define +infinity according to specific implementation
91  * @return Numeric definition for +infinity
92  */
93  virtual double PLUS_INF() ;
94 
95  /*
96  * Define -infinity according to specific implementation
97  * @return Numeric definition for -infinity
98  */
99  virtual double MINUS_INF() ;
100 }; // class
101 } // namespace AIDA
102 #endif /* ifndef AIDA_IRANGESETROOT_H */
User level interface to RangeSet.
Definition: IRangeSet.h:42
virtual void exclude(double xMin, double xMax)
Exclude [xMin, xMax] interval from the existing set of valid ranges.
Definition: IRangeSetROOT.cc:24
virtual void excludeAll()
Set empty range.
Definition: IRangeSetROOT.cc:34
virtual int size()
Return current number of disjoint ranges (non-overlapping intervals).
Definition: IRangeSetROOT.cc:45
virtual void include(double xMin, double xMax)
Add [xMin, xMax] interval to existing set of valid ranges.
Definition: IRangeSetROOT.cc:19
virtual ~IRangeSetROOT()
Destructor.
Definition: IRangeSetROOT.h:37
virtual void includeAll()
Set full range (from MINUS_INF to PLUS_INF ).
Definition: IRangeSetROOT.cc:29
User level interface to RangeSet.
Definition: IRangeSetROOT.h:33
virtual const std::vector< double > & upperBounds()
Return array of upper Bounds for the current set of ranges.
Definition: IRangeSetROOT.cc:13
virtual const std::vector< double > & lowerBounds()
Return array of lower Bounds for the current set of ranges.
Definition: IRangeSetROOT.cc:7