MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / limitIteratorsToDataRange

Method limitIteratorsToDataRange

tools/qcustomplot.h:3335–3341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3333*/
3334template <class DataType>
3335void QCPDataContainer<DataType>::limitIteratorsToDataRange(const_iterator &begin, const_iterator &end, const QCPDataRange &dataRange) const
3336{
3337 QCPDataRange iteratorRange(int(begin-constBegin()), int(end-constBegin()));
3338 iteratorRange = iteratorRange.bounded(dataRange.bounded(this->dataRange()));
3339 begin = constBegin()+iteratorRange.begin();
3340 end = constBegin()+iteratorRange.end();
3341}
3342
3343/*! \internal
3344

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