MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / limitIteratorsToDataRange

Method limitIteratorsToDataRange

qcustomplot.h:3171–3177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3169*/
3170template <class DataType>
3171void QCPDataContainer<DataType>::limitIteratorsToDataRange(const_iterator &begin, const_iterator &end, const QCPDataRange &dataRange) const
3172{
3173 QCPDataRange iteratorRange(begin-constBegin(), end-constBegin());
3174 iteratorRange = iteratorRange.bounded(dataRange.bounded(this->dataRange()));
3175 begin = constBegin()+iteratorRange.begin();
3176 end = constBegin()+iteratorRange.end();
3177}
3178
3179/*! \internal
3180

Callers 4

getVisibleDataBoundsMethod · 0.80
getCurveLinesMethod · 0.80
getScattersMethod · 0.80
drawMethod · 0.80

Calls 4

dataRangeMethod · 0.95
boundedMethod · 0.80
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected