eicplot  trunk
EIC ROOT plotting utilities
Public Types | Public Member Functions | Protected Attributes
erhic::Range2D< T > Class Template Reference

#include <Utilities.h>

List of all members.

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

Detailed Description

template<typename T>
class erhic::Range2D< T >

A 2D range defined by a lower and upper bound in each dimension.


Constructor & Destructor Documentation

template<typename T >
virtual erhic::Range2D< T >::~Range2D ( ) [inline, virtual]

Destructor

template<typename T >
erhic::Range2D< T >::Range2D ( const Range< T > &  inDimension1 = Range<T>(),
const Range< T > &  inDimension2 = Range<T>() 
) [inline]

Constructor


Member Function Documentation

template<typename T >
bool erhic::Range2D< T >::contains ( const std::pair< T, T > &  test) const [inline]

Equaivalent to !excludes()

template<typename T >
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.

template<typename T >
bool erhic::Range2D< T >::operator< ( const Range2D< T > &  other) const [inline]

Compares the first dimension first, then the second dimesion.

template<typename T >
std::ostream& erhic::Range2D< T >::print ( std::ostream &  os) const [inline]

Prints the two ranges to an output stream.


The documentation for this class was generated from the following file: