Range Class |
The Range type exposes the following members.
Name | Description | |
---|---|---|
Range | Default constructor. | |
Range(Int32, Position) | Constructs a Range instance with the specified starting index, total number of elements, and the default stride of 1. | |
Range(Int32, Int32) | Constructs a Range instance with the given starting index and ending index, using a default stride of 1. | |
Range(Position, Position) | Constructs a Range instance with the specified start and end positions. | |
Range(Int32, Position, Int32) | Constructs a Range instance with the specified starting index, total number of elements, and stride. | |
Range(Int32, Int32, Int32) | Constructs a Range instance with the given starting index, ending index, and stride. | |
Range(Position, Position, Int32) | Constructs a Range instance with the specified start and end positions and a stride. |
Name | Description | |
---|---|---|
All | Gets a new Range indexing all. | |
End |
Gets the end data element.
(Inherited from Slice) | |
NumElements |
Gets the total number of data elements.
(Inherited from Slice) | |
Start |
Gets the starting data element.
(Inherited from Slice) | |
Stride |
Gets the step increment between successive data elements.
(Inherited from Slice) |
Name | Description | |
---|---|---|
Begin |
Calculates the starting element of this slice.
(Inherited from Slice) | |
Clone |
Creates a deep copy of this range.
(Overrides SliceClone) | |
Length |
Calculates the length of this slice.
(Inherited from Slice) | |
Set(Int32, Int32, Int32) |
Sets the the specified starting index, specified ending index and the stride
for this Range.
(Overrides SliceSet(Int32, Int32, Int32)) | |
Set(Int32, Position, Int32) |
Sets the specified starting index, a Position value indicating the end of the data, and
a specified stride.
(Inherited from Slice) | |
Set(Position, Position, Int32) |
Sets the specified start and end positions and a stride.
(Inherited from Slice) | |
Set(Position, Int32, Int32) |
Sets the specified position from which to start, the end index and a stride.
(Inherited from Slice) |
Name | Description | |
---|---|---|
end_ |
The end of the data.
(Inherited from Slice) | |
numElements_ |
The total number of data elements.
(Inherited from Slice) | |
start_ |
The start of the data.
(Inherited from Slice) | |
stride_ |
The step increment between successive elements in the data.
(Inherited from Slice) |