
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIDoubleValuesProvider
@protocol ISCIDoubleValuesProvider <NSObject>
Defines a collection which can represented as sequence of double values.
-
Returns the number of elements in this provider.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger count;
-
Gets the double representation of item at specified index
Declaration
Objective-C
- (double)getDoubleValueAt:(NSInteger)index;
Parameters
index
The index to get item at
-
Gets the items of list at specified indices and sets them as double values.
Declaration
Objective-C
- (void)getDoubleValues:(nonnull SCIDoubleValues *)doubleValues indices:(nonnull SCIIntegerValues *)indices;
Parameters
doubleValues
The target collection to add item to.
indices
The collection of indices to get items at.
-
Gets the items of list at specified start index and sets them as double values.
Declaration
Objective-C
- (void)getDoubleValues:(nonnull SCIDoubleValues *)doubleValues startIndex:(NSInteger)startIndex count:(NSInteger)count;
Parameters
doubleValues
The target collection to add item to.
startIndex
The index to start at.
count
The amount of items to be retrieved.
-
Finds value by its double representation with specified search mode in this list.
Declaration
Objective-C
- (NSInteger)findIndexOfDoubleValue:(double)doubleValue searchMode:(SCISearchMode)searchMode isSorted:(BOOL)isSorted;
Parameters
doubleValue
The double representation of value to find
searchMode
The search mode.
Return Value
The index of item in list.