eicplot
trunk
EIC ROOT plotting utilities
|
#include <Utilities.h>
Public Types | |
typedef T | Type |
Public Member Functions | |
virtual | ~Range2D () |
Range2D (const Range< T > &inDimension1=Range< T >(), const Range< T > &inDimension2=Range< T >()) | |
bool | excludes (const std::pair< T, T > &test) const |
bool | contains (const std::pair< T, T > &test) const |
bool | operator< (const Range2D &other) const |
std::ostream & | print (std::ostream &os) const |
Protected Attributes | |
Range< T > | mDimension1 |
Range< T > | mDimension2 |
A 2D range defined by a lower and upper bound in each dimension.
virtual erhic::Range2D< T >::~Range2D | ( | ) | [inline, virtual] |
Destructor
erhic::Range2D< T >::Range2D | ( | const Range< T > & | inDimension1 = Range<T>() , |
const Range< T > & | inDimension2 = Range<T>() |
||
) | [inline] |
Constructor
bool erhic::Range2D< T >::contains | ( | const std::pair< T, T > & | test | ) | const [inline] |
Equaivalent to !excludes()
bool erhic::Range2D< T >::excludes | ( | const std::pair< T, T > & | test | ) | const [inline] |
Returns true if the test point (x, y) lies in the range [(x0, y0), (x1, y1)), false if not.
bool erhic::Range2D< T >::operator< | ( | const Range2D< T > & | other | ) | const [inline] |
Compares the first dimension first, then the second dimesion.
std::ostream& erhic::Range2D< T >::print | ( | std::ostream & | os | ) | const [inline] |
Prints the two ranges to an output stream.