Click or drag to resize

ContiguousIntegerRange Structure

Represents a range of consecutive integers. The range can be empty (in this case both Start as well as Count are zero).
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.CollectionsContiguousIntegerRange

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public struct ContiguousIntegerRange : IContiguousIntegerRange, 
	IReadOnlyList<int>, IReadOnlyCollection<int>, IEnumerable<int>, 
	IEnumerable, IAscendingIntegerCollection, ICloneable

The ContiguousIntegerRange type exposes the following members.

Constructors
 NameDescription
Public methodContiguousIntegerRange Constructs an integer range from another integer range.
Top
Properties
 NameDescription
Public propertyCount Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1.
Public propertyStatic memberEmpty Gets a standard empty integer range (Start and Count set to zero).
Public propertyEndExclusive Element immmediately after the last valid element (is equal to Start+Count).
Public propertyFirst Start value of the integer range.
Public propertyIsEmpty Returns true if the range is empty, i.e. has no elements.
Public propertyIsReadOnly 
Public propertyItem 
Public propertyLastInclusive Last valid element of the integer range (is equal to Start+Count-1).
Public propertyLongCount Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1.
Public propertyRangesAscending 
Public propertyRangesDescending 
Public propertyStart Start value of the integer range.
Top
Methods
 NameDescription
Public methodAdd 
Public methodClear 
Public methodClone 
Public methodContains 
Public methodCopyTo 
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodStatic memberFromFirstAndLastInclusive Constructs an integer range from the first and the last element of the range. Note that because last has to be greater than or equal to start, it is not possible to create an empty range with this method.
Public methodStatic memberFromStartAndCount Constructs an integer range from the first element and the number of element of the range. An empty range (with start=0 and count=0) is constructed if count is zero.
Public methodStatic memberFromStartAndEndExclusive Constructs an integer range from the first element and the element following immediately after the last element. An empty range (with start=0 and count=0) is constructed if start is equal to end.
Public methodGetEnumerator 
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOf 
Public methodInsert 
Public methodRemove 
Public methodRemoveAt 
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Top
Extension Methods
 NameDescription
Public Extension MethodElementsAtInt32
(Defined by VectorMath)
Public Extension MethodElementsWhereInt32
(Defined by VectorMath)
Public Extension MethodElementsWhereInt32
(Defined by VectorMath)
Public Extension MethodFirstOrInt32 Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodFlattenFromRootToLeavesInt32 Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions)
Public Extension MethodForEachDoInt32 Executes an action for each element of the sequence.
(Defined by EnumerableExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsHigherIndicesInt32 Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
(Defined by ListExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsLowerIndicesInt32 Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
(Defined by ListExtensions)
Public Extension MethodHasSingleElementInt32 Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfInt32 Gets the index of an item in a enumeration or list.
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstInt32 Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstInt32 Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfMaxInt32Return the index of the element with the maximum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfMinInt32Return the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereInt32 Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereInt32 Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereInt32 Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereInt32 Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesOfMinMaxInt32Return the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIsEmptyInt32 Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalInt32, T2 Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalInt32, T2, TResult Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodLastOrInt32 Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodMaxElementInt32, M Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value. This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions)
Public Extension MethodMaxOrDefaultInt32, M Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions)
Public Extension MethodSelectCombinationInt32 Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectCombinationWithRepetitionInt32 Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectPermutationInt32 Select a random permutation from a data sequence by returning the provided data in random order. Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationInt32 Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order. Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationWithRepetitionInt32 Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics)
Public Extension MethodTakeAllButLastInt32 Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions)
Public Extension MethodThisOrEmptyInt32 Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions)
Public Extension MethodToInverseROVector Wraps a Int32[] array to get an IReadOnlyListT with elements = 1 / elements of the original vector.
(Defined by VectorMath)
Public Extension MethodToInverseROVector Wraps a Int32[] array till a given length to get an IReadOnlyListT with elements = 1 / elements of the original vector.
(Defined by VectorMath)
Public Extension MethodToROVector Wraps a section of an original vector into a new vector.
(Defined by VectorMath)
Public Extension MethodTryGetFirstAndLastInt32 Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetSingleElementInt32 Try to get the one and only element of the collection.
(Defined by EnumerableExtensions)
Top
See Also