class Geo GeoIntRange

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

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
)