@@ -230,6 +230,21 public: | |||
|
230 | 230 | return std::make_pair(lowerIt, upperIt); |
|
231 | 231 | } |
|
232 | 232 | |
|
233 | std::pair<DataSeriesIterator, DataSeriesIterator> | |
|
234 | valuesBounds(double minXAxisData, double maxXAxisData) const override | |
|
235 | { | |
|
236 | // Places iterators to the correct x-axis range | |
|
237 | auto xAxisRangeIts = xAxisRange(minXAxisData, maxXAxisData); | |
|
238 | ||
|
239 | // Returns end iterators if the range is empty | |
|
240 | if (xAxisRangeIts.first == xAxisRangeIts.second) { | |
|
241 | return std::make_pair(cend(), cend()); | |
|
242 | } | |
|
243 | ||
|
244 | /// @todo ALX: complete | |
|
245 | ||
|
246 | } | |
|
247 | ||
|
233 | 248 | // /////// // |
|
234 | 249 | // Mutexes // |
|
235 | 250 | // /////// // |
@@ -83,6 +83,12 public: | |||
|
83 | 83 | virtual std::pair<DataSeriesIterator, DataSeriesIterator> |
|
84 | 84 | xAxisRange(double minXAxisData, double maxXAxisData) const = 0; |
|
85 | 85 | |
|
86 | /// @return two iterators pointing to the data that have respectively the min and the max value | |
|
87 | /// data of a data series' range. The search is performed for a given x-axis range. | |
|
88 | /// @sa xAxisRange() | |
|
89 | virtual std::pair<DataSeriesIterator, DataSeriesIterator> | |
|
90 | valuesBounds(double minXAxisData, double maxXAxisData) const = 0; | |
|
91 | ||
|
86 | 92 | // /////// // |
|
87 | 93 | // Mutexes // |
|
88 | 94 | // /////// // |
General Comments 0
You need to be logged in to leave comments.
Login now