Bound< T > Struct Template Reference

#include <Range.h>

Collaboration diagram for Bound< T >:

Collaboration graph
[legend]

Detailed Description

template<typename T>
struct Bound< T >

Definition at line 33 of file Range.h.


Public Member Functions

 Bound ()
 Bound (const Bound &_r)
Boundoperator= (const Bound &_r)

Data Fields

lower
upper

Constructor & Destructor Documentation

template<typename T>
Bound< T >::Bound (  )  [inline]

Definition at line 37 of file Range.h.

00037 {}

template<typename T>
Bound< T >::Bound ( const Bound< T > &  _r  )  [inline]

Definition at line 38 of file Range.h.

References Bound< T >::lower, and Bound< T >::upper.

00038                            : lower(_r.lower),upper(_r.upper) {
00039         if (lower > upper)
00040             swap<T>(lower,upper);
00041     }


Member Function Documentation

template<typename T>
Bound& Bound< T >::operator= ( const Bound< T > &  _r  )  [inline]

Definition at line 42 of file Range.h.

References Bound< T >::lower, and Bound< T >::upper.

00042                                       {
00043         lower = _r.lower;
00044         upper = _r.upper;
00045         if (lower > upper)
00046             swap<T>(lower,upper);
00047         return *this;
00048     }


Field Documentation

template<typename T>
T Bound< T >::lower

Definition at line 35 of file Range.h.

Referenced by Bound< T >::Bound(), is_in(), Bound< T >::operator=(), operator==(), and overlap().

template<typename T>
T Bound< T >::upper

Definition at line 36 of file Range.h.

Referenced by Bound< T >::Bound(), is_in(), Bound< T >::operator=(), operator==(), and overlap().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 27 20:31:41 2008 for php.ast.svn.src. by  doxygen 1.5.3