IRange

The IRange class represents a range of IPair::Coord values between a specified lower and upper bound (inclusive).


IRange - Member Functions and Data by Group

Constructors & Destructor

You can construct, copy, and assign objects of this class. This class uses the compiler-generated copy constructor and assignment operator to copy and assign IRange objects.


[view class]
IRange
Constuct and destruct IRange objects.


Overload 1
public:
IRange()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IRange(const IPair& aPair)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 3
public:
IRange(Coord lower, Coord upper)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Coordinates

Use these members to query and change the ordered pair of integers in an IRange object.


[view class]
lowerBound
public:
Coord lowerBound() const

Returns the lower bound of the range.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
setLowerBound
public:
IRange& setLowerBound(Coord lower)

Sets the lower bound of the range.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
setUpperBound
public:
IRange& setUpperBound(Coord upper)

Sets the upper bound of the range.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
upperBound
public:
Coord upperBound() const

Returns the upper bound of the range.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Testing

Use these members to test coordinate values.


[view class]
includes
public:
bool includes(Coord aValue) const

Returns true if the range contains the specified coordinate value.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IRange - Inherited Member Functions and Data

Inherited Public Functions

IPair

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data