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) -> Double

    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;

    Swift

    func getDoubleValues(_ doubleValues: SCIDoubleValues, indices: SCIIntegerValues)

    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;

    Swift

    func getDoubleValues(_ doubleValues: SCIDoubleValues, start startIndex: Int, count: Int)

    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;

    Swift

    func findIndex(ofDoubleValue doubleValue: Double, searchMode: SCISearchMode, isSorted: Bool) -> Int

    Parameters

    doubleValue

    The double representation of value to find

    searchMode

    The search mode.

    Return Value

    The index of item in list.