![]() |
SystemEX
Lacking
Additional generic collection types missing in .net
|
Public Member Functions | |
| IRange< T > | GetRange (T? tstart, T? tend) |
| Creates a new range using optional override values for start and end. | |
| IRange< T >? | Union (IRange< T > other) |
| Computes the union of this range with another range if they overlap or are adjacent. Otherwise returns null. | |
| bool | IsAdjacent (IRange< T > other) |
| Determines whether this range touches another range at exactly one boundary. | |
| bool | Contains (T x) |
| Determines whether the specified value lies within the range. | |
| IRange< T >? | Intersect (IRange< T > other) |
| Computes the intersection of this range with another range. | |
| bool | Overlaps (IRange< T > other) |
| Determines whether this range overlaps with another range. | |
Properties | |
| IForwardIterator< T > | Begin [get] |
| Returns an iterator positioned at the start of the range. | |
| IForwardIterator< T > | End [get] |
| Returns an iterator positioned past the end of the range. | |
| T | From [get, set] |
| Gets or sets the start value of the range. | |
| T | To [get, set] |
| Gets or sets the end value of the range. | |
| bool | IsValid [get] |
| Indicates whether the range is valid (Start ≤ End). | |
| bool | IsSame [get] |
| Indicates whether the range represents a single value (Start == End). | |
| bool SystemEx.IRange< T >.Contains | ( | T | x | ) |
Determines whether the specified value lies within the range.
| x | Value to test. |
Implemented in SystemEx.NumberRange< T >.
| IRange< T > SystemEx.IRange< T >.GetRange | ( | T? | tstart, |
| T? | tend ) |
Creates a new range using optional override values for start and end.
| tstart | Optional new start value. |
| tend | Optional new end value. |
Implemented in SystemEx.NumberRange< T >.
| IRange< T >? SystemEx.IRange< T >.Intersect | ( | IRange< T > | other | ) |
Computes the intersection of this range with another range.
| other | Range to intersect with. |
Implemented in SystemEx.NumberRange< T >.
| bool SystemEx.IRange< T >.IsAdjacent | ( | IRange< T > | other | ) |
Determines whether this range touches another range at exactly one boundary.
| other | Range to test. |
Implemented in SystemEx.NumberRange< T >.
| bool SystemEx.IRange< T >.Overlaps | ( | IRange< T > | other | ) |
Determines whether this range overlaps with another range.
| other | Range to test. |
Implemented in SystemEx.NumberRange< T >.
| IRange< T >? SystemEx.IRange< T >.Union | ( | IRange< T > | other | ) |
Computes the union of this range with another range if they overlap or are adjacent. Otherwise returns null.
| other | Range to merge with. |
Implemented in SystemEx.NumberRange< T >.
|
get |
Returns an iterator positioned at the start of the range.
Implemented in SystemEx.NumberRange< T >.
|
get |
Returns an iterator positioned past the end of the range.
Implemented in SystemEx.NumberRange< T >.
|
getset |
Gets or sets the start value of the range.
Implemented in SystemEx.NumberRange< T >.
|
get |
Indicates whether the range represents a single value (Start == End).
Implemented in SystemEx.NumberRange< T >.
|
get |
Indicates whether the range is valid (Start ≤ End).
Implemented in SystemEx.NumberRange< T >.
|
getset |