This is the documentation for Enlighten.
class Geo GeoIntRange
class Geo::GeoIntRange
Represents a range of integers, e.g. between 10 and 20.
Functions
| Name | Description |
|---|---|
| Erosion(const GeoIntRange &, s32) | Erodes the given range by the given amount, and returns the result. |
| GeoIntRange(s32, s32) | Construct the inclusive range of integers [x1,x2]. |
| GeoIntRange() | Construct an empty range. |
| Intersection(const GeoIntRange &, const GeoIntRange &) | Return the intersection of a and b. |
| IsEmpty() | Return true if this is an empty range. |
| Length() | Return the length of this range. |
| Max() | Gets the upper end of this range. |
| Min() | Gets the lower end of this range. |
| operator+(s32) | Shifts this range by the given amount. |
| operator+=(s32) | Increment this. |
| Union(const GeoIntRange &, const GeoIntRange &) | Return the union of a and b. |
static GeoIntRange Geo::GeoIntRange::Erosion
public: GeoIntRange Erosion
(
const GeoIntRange & a,
s32 v
)
Erodes the given range by the given amount, and returns the result.
Geo::GeoIntRange::GeoIntRange
public: GeoIntRange
(
s32 x1,
s32 x2
)
Construct the inclusive range of integers [x1,x2].
Geo::GeoIntRange::GeoIntRange
public: GeoIntRange()
Construct an empty range.
static GeoIntRange Geo::GeoIntRange::Intersection
public: GeoIntRange Intersection
(
const GeoIntRange & a,
const GeoIntRange & b
)
Return the intersection of a and b.
bool Geo::GeoIntRange::IsEmpty
public: bool IsEmpty() const
Return true if this is an empty range.
s32 Geo::GeoIntRange::Length
public: s32 Length() const
Return the length of this range.
s32 Geo::GeoIntRange::Max
public: s32 Max() const
Gets the upper end of this range.
s32 Geo::GeoIntRange::Min
public: s32 Min() const
Gets the lower end of this range.
GeoIntRange Geo::GeoIntRange::operator+
public: GeoIntRange operator+
(
s32 incr
) const
Shifts this range by the given amount.
GeoIntRange& Geo::GeoIntRange::operator+=
public: GeoIntRange & operator+=
(
s32 incr
)
Increment this.
static GeoIntRange Geo::GeoIntRange::Union
public: GeoIntRange Union
(
const GeoIntRange & a,
const GeoIntRange & b
)
Return the union of a and b.