C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

class Range

Defined in:  C4Types.h
The Range class template encapsulates a range of values.
Definition

template <typename type> struct Range

Member Functions
Range::Set Sets the beginning and end of a range.
Template Parameters
type The type of value used to represent the beginning and end of a range.
Data Members
type    min; The beginning of the range.
type    max; The end of the range.
Constructor

Range();

Range(const type& x, const type& y);

Parameters
x The beginning of the range.
y The end of the range.
Description
The Range class template encapsulates a range of values of the type given by the type class template.

The default constructor leaves the beginning and end values of the range undefined. If the values x and y are supplied, then they are assigned to the beginning and end of the range, respectively.
Overloaded Operators
bool operator ==(const Range& range); Returns a boolean value indicating the equality of two ranges.
bool operator !=(const Range& range); Returns a boolean value indicating the inequality of two ranges.