#include "AbstractVisitor.h"
#include <cmath>
Go to the source code of this file.
Data Structures | |
struct | Bound< T > |
struct | Range< T > |
class | RangeChecker |
Functions | |
template<typename T> | |
void | swap (T &a, T &b) |
template<typename T> | |
bool | operator== (const Bound< T > &b1, const Bound< T > &b2) |
template<typename T> | |
static bool | is_in (const Bound< T > &b1, const Bound< T > &b2) |
template<typename T> | |
static bool | overlap (const Bound< T > &min, const Bound< T > &max) |
Variables | |
static Bound< int > | Empty |
static bool is_in | ( | const Bound< T > & | b1, | |
const Bound< T > & | b2 | |||
) | [inline, static] |
Definition at line 57 of file Range.h.
References Bound< T >::lower, and Bound< T >::upper.
00057 { 00058 if (b1.lower >=b1.lower && b1.upper <= b2.upper) 00059 return true; 00060 return false; 00061 }
static bool overlap | ( | const Bound< T > & | min, | |
const Bound< T > & | max | |||
) | [inline, static] |
void swap | ( | T & | a, | |
T & | b | |||
) | [inline] |