Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::GeoIntRange

Represents a range of integers, e.g. between 10 and 20.

Functions

NameDescription
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.


Anchor
a3c8d25f8fd22629bebd36d04294a3dca
a3c8d25f8fd22629bebd36d04294a3dca

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.


Anchor
a50268ff0c37ef48f033a37995c842999
a50268ff0c37ef48f033a37995c842999

Geo::GeoIntRange::GeoIntRange

...

public: GeoIntRange
(
    s32 x1,
    s32 x2
)

...

Construct the inclusive range of integers [x1,x2].


Anchor
aecd0e2b41f0d28be8a12574934bb8e18
aecd0e2b41f0d28be8a12574934bb8e18

Geo::GeoIntRange::GeoIntRange

...

public: GeoIntRange()

...

Construct an empty range.


Anchor
adfe98ec206d96845cac66394a09bad35
adfe98ec206d96845cac66394a09bad35

static GeoIntRange Geo::GeoIntRange::Intersection

...

public: GeoIntRange Intersection
(
    const GeoIntRange & a,
    const GeoIntRange & b
)

...

Return the intersection of a and b.


Anchor
add3986ba7ad0ce571b28f199d0e5db9c
add3986ba7ad0ce571b28f199d0e5db9c

bool Geo::GeoIntRange::IsEmpty

...

public: bool IsEmpty() const

...

Return true if this is an empty range.


Anchor
adda3304f698eb18441d63df064fa4ea0
adda3304f698eb18441d63df064fa4ea0

s32 Geo::GeoIntRange::Length

...

public: s32 Length() const

...

Return the length of this range.


Anchor
ae5b30fc41d922c092c77a744f536a9e9
ae5b30fc41d922c092c77a744f536a9e9

s32 Geo::GeoIntRange::Max

...

public: s32 Max() const

...

Gets the upper end of this range.


Anchor
a1210ef495476d92d81f3eca6493e35f8
a1210ef495476d92d81f3eca6493e35f8

s32 Geo::GeoIntRange::Min

...

public: s32 Min() const

...

Gets the lower end of this range.


Anchor
ab5546a542859bfde17402ac3ae8318f3
ab5546a542859bfde17402ac3ae8318f3

GeoIntRange Geo::GeoIntRange::operator+

...

public: GeoIntRange operator+
(
    s32 incr
) const

...

Shifts this range by the given amount.


Anchor
aebf1b483fcdf31f014cf5845b325f684
aebf1b483fcdf31f014cf5845b325f684

GeoIntRange& Geo::GeoIntRange::operator+=

...

public: GeoIntRange & operator+=
(
    s32 incr
)

...

Increment this.


Anchor
a748e0ae3b5add7867005d9dfdacac709
a748e0ae3b5add7867005d9dfdacac709

static GeoIntRange Geo::GeoIntRange::Union

...

public: GeoIntRange Union
(
    const GeoIntRange & a,
    const GeoIntRange & b
)

...

Return the union of a and b.