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

CCM::Range Class Reference

List of all members.

Detailed Description

Value range for equivalence relation domains.


Public Member Functions

 Range (bool leftopen, Object left, bool rightopen, Object right)
 Create an interval range.

bool contains (Object value)
 Returns whether given value is within the range.

override string ToString ()

Static Private Member Functions

int compare (Object o1, Object o2)
 Compare the two objects (int or double).


Private Attributes

Object left
Object right
bool leftopen
bool rightopen


Constructor & Destructor Documentation

CCM::Range::Range bool  leftopen,
Object  left,
bool  rightopen,
Object  right
 

Create an interval range.

Parameters:
leftopen True if left interval border is open
left int or double value of the left (minimum) value; null means "minus infinity" (only for leftopen=true)
rightopen True if left interval border is open
right Value of the right (maximum) value (same type as left); null means "plus infinity" (only for rightopen=true)


Member Function Documentation

int CCM::Range::compare Object  o1,
Object  o2
[static, private]
 

Compare the two objects (int or double).

Returns:
-1 if o1<o2, 0 if o1==o2, 1 if o1>o2

bool CCM::Range::contains Object  value  ) 
 

Returns whether given value is within the range.

override string CCM::Range::ToString  ) 
 


Member Data Documentation

Object CCM::Range::left [private]
 

bool CCM::Range::leftopen [private]
 

Object CCM::Range::right [private]
 

bool CCM::Range::rightopen [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7