Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

UTAP::range_t Class Reference

An integer range. More...

#include <symbols.h>

List of all members.

Public Member Functions

 range_t ()
 Constructs the empty range.
 range_t (int)
 Constructs a range containing a single value.
 range_t (int, int)
 Constructs an interval range.
 range_t (const std::pair< int, int > &)
 Constructs an internval range.
range_t intersect (const range_t &) const
 Constructs the intersection of two ranges.
range_t join (const range_t &) const
 Constructs the union of two ranges.
bool contains (const range_t &) const
 Returns true if the argument is contained in the range.
bool contains (int32_t) const
 Returns true if the argument is contained in the range.
bool operator== (const range_t &) const
 Equallity operator.
bool operator!= (const range_t &) const
 Inequallity operator.
bool isEmpty () const
 Returns true if and only if the range is empty.

Public Attributes

int lower
int upper


Detailed Description

An integer range.


Constructor & Destructor Documentation

range_t::range_t  ) 
 

Constructs the empty range.

range_t::range_t int   ) 
 

Constructs a range containing a single value.

range_t::range_t int  ,
int 
 

Constructs an interval range.

range_t::range_t const std::pair< int, int > &   ) 
 

Constructs an internval range.


Member Function Documentation

bool range_t::contains int32_t   )  const
 

Returns true if the argument is contained in the range.

bool range_t::contains const range_t  )  const
 

Returns true if the argument is contained in the range.

range_t range_t::intersect const range_t  )  const
 

Constructs the intersection of two ranges.

bool range_t::isEmpty  )  const
 

Returns true if and only if the range is empty.

range_t range_t::join const range_t  )  const
 

Constructs the union of two ranges.

bool range_t::operator!= const range_t  )  const
 

Inequallity operator.

bool range_t::operator== const range_t  )  const
 

Equallity operator.


Member Data Documentation

int UTAP::range_t::lower
 

int UTAP::range_t::upper
 


The documentation for this class was generated from the following files:
Generated on Thu Feb 17 15:20:59 2005 for libutap by  doxygen 1.4.1