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;Swift
var count: Int { get } -
Gets the double representation of item at specified index
Declaration
Objective-C
- (double)getDoubleValueAt:(NSInteger)index;Swift
func getDoubleValue(at index: Int) -> DoubleParameters
indexThe 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;Swift
func getDoubleValues(_ doubleValues: SCIDoubleValues, indices: SCIIntegerValues)Parameters
doubleValuesThe target collection to add item to.
indicesThe 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;Swift
func getDoubleValues(_ doubleValues: SCIDoubleValues, start startIndex: Int, count: Int)Parameters
doubleValuesThe target collection to add item to.
startIndexThe index to start at.
countThe 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;Swift
func findIndex(ofDoubleValue doubleValue: Double, searchMode: SCISearchMode, isSorted: Bool) -> IntParameters
doubleValueThe double representation of value to find
searchModeThe search mode.
Return Value
The index of item in list.
View on GitHub