Range< T > Class Template Reference

#include <range.h>

List of all members.

Public Member Functions

 Range ()
 Range (const T &lower_bound, const T &upper_bound)
bool empty () const
const T & lower () const
 Returns true if range is empty.
const T & upper () const
 Returns lower bound.
bool is_in_closed (const Range< T > &range) const
 Returns upper bound.
bool is_in_closed (const T &value) const
 Returns true if value is inside the closed range.
bool is_in_open (const T &value) const
 Returns true if value is inside the closed range.
void enlarge_to_include (const T &value)
 Returns true if value is inside the open range.

Static Public Member Functions

static Range< T > make_envelope (const Range< T > &a, const Range< T > &b)

template<typename T>
class Range< T >


Constructor & Destructor Documentation

template<typename T>
Range< T >::Range (  )  [inline]
template<typename T>
Range< T >::Range ( const T &  lower_bound,
const T &  upper_bound 
) [inline]

Member Function Documentation

template<typename T>
bool Range< T >::empty (  )  const [inline]
template<typename T>
void Range< T >::enlarge_to_include ( const T &  value  )  [inline]

Returns true if value is inside the open range.

< Enlarge range to include a value.

template<typename T>
bool Range< T >::is_in_closed ( const T &  value  )  const [inline]

Returns true if value is inside the closed range.

template<typename T>
bool Range< T >::is_in_closed ( const Range< T > &  range  )  const [inline]

Returns upper bound.

template<typename T>
bool Range< T >::is_in_open ( const T &  value  )  const [inline]

Returns true if value is inside the closed range.

template<typename T>
const T& Range< T >::lower (  )  const [inline]

Returns true if range is empty.

template<typename T>
static Range<T> Range< T >::make_envelope ( const Range< T > &  a,
const Range< T > &  b 
) [inline, static]

< Create an envelope which contains both ranges.

template<typename T>
const T& Range< T >::upper (  )  const [inline]

Returns lower bound.


The documentation for this class was generated from the following file:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3