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. |
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
Geo::GeoIntRange::GeoIntRange
...
public: GeoIntRange
(
s32 x1,
s32 x2
)
...
Construct the inclusive range of integers [x1,x2].
Anchor | ||||
---|---|---|---|---|
|
Geo::GeoIntRange::GeoIntRange
...
public: GeoIntRange()
...
Construct an empty range.
Anchor | ||||
---|---|---|---|---|
|
static GeoIntRange Geo::GeoIntRange::Intersection
...
public: GeoIntRange Intersection
(
const GeoIntRange & a,
const GeoIntRange & b
)
...
Return the intersection of a and b.
Anchor | ||||
---|---|---|---|---|
|
bool Geo::GeoIntRange::IsEmpty
...
public: bool IsEmpty() const
...
Return true if this is an empty range.
Anchor | ||||
---|---|---|---|---|
|
s32 Geo::GeoIntRange::Length
...
public: s32 Length() const
...
Return the length of this range.
Anchor | ||||
---|---|---|---|---|
|
s32 Geo::GeoIntRange::Max
...
public: s32 Max() const
...
Gets the upper end of this range.
Anchor | ||||
---|---|---|---|---|
|
s32 Geo::GeoIntRange::Min
...
public: s32 Min() const
...
Gets the lower end of this range.
Anchor | ||||
---|---|---|---|---|
|
GeoIntRange Geo::GeoIntRange::operator+
...
public: GeoIntRange operator+
(
s32 incr
) const
...
Shifts this range by the given amount.
Anchor | ||||
---|---|---|---|---|
|
GeoIntRange& Geo::GeoIntRange::operator+=
...
public: GeoIntRange & operator+=
(
s32 incr
)
...
Increment this.
Anchor | ||||
---|---|---|---|---|
|
static GeoIntRange Geo::GeoIntRange::Union
...
public: GeoIntRange Union
(
const GeoIntRange & a,
const GeoIntRange & b
)
...
Return the union of a and b.