eicplot
trunk
EIC ROOT plotting utilities
|
#include <Utilities.h>
Public Types | |
typedef T | Type |
Public Member Functions | |
virtual | ~Range () |
Range (const T &low=T(), const T &up=T()) | |
T | lower () const |
T | middle () const |
T | upper () const |
T | span () const |
bool | excludes (const T &t) const |
bool | contains (const T &t) const |
std::ostream & | print (std::ostream &os) const |
bool | operator< (const Range< T > &other) const |
Protected Attributes | |
std::pair< T, T > | mRange |
A range defined by an upper and lower bound.
virtual erhic::Range< T >::~Range | ( | ) | [inline, virtual] |
Destructor
erhic::Range< T >::Range | ( | const T & | low = T() , |
const T & | up = T() |
||
) | [inline] |
Constructor
bool erhic::Range< T >::contains | ( | const T & | t | ) | const [inline] |
Returns true if the test value lies in the range [lower, upper), false if not.
bool erhic::Range< T >::excludes | ( | const T & | t | ) | const [inline] |
Returns true if the test value lies ouside the range [lower, upper), false if not.
T erhic::Range< T >::lower | ( | ) | const [inline] |
Returns the lower limit of the range
T erhic::Range< T >::middle | ( | ) | const [inline] |
Returns the linear midpoint of the range
bool erhic::Range< T >::operator< | ( | const Range< T > & | other | ) | const [inline] |
Compares first the lower then the upper limits of the range. e.g. (1, 2) < (1, 3) < (2, 1)
std::ostream& erhic::Range< T >::print | ( | std::ostream & | os | ) | const [inline] |
Prints the lower and upper limits to a stream.
T erhic::Range< T >::span | ( | ) | const [inline] |
Returns the span of the range (upper - lower)
T erhic::Range< T >::upper | ( | ) | const [inline] |
Returns the upper limit of the range