MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / limitIteratorsToDataRange

Method limitIteratorsToDataRange

3rdparty/qcustomplot/qcustomplot.h:3374–3380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3372*/
3373template <class DataType>
3374void QCPDataContainer<DataType>::limitIteratorsToDataRange(const_iterator &begin, const_iterator &end, const QCPDataRange &dataRange) const
3375{
3376 QCPDataRange iteratorRange(int(begin-constBegin()), int(end-constBegin()));
3377 iteratorRange = iteratorRange.bounded(dataRange.bounded(this->dataRange()));
3378 begin = constBegin()+iteratorRange.begin();
3379 end = constBegin()+iteratorRange.end();
3380}
3381
3382/*! \internal
3383

Callers 4

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

Calls 4

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

Tested by

no test coverage detected