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

Method findBegin

3rdparty/qcustomplot/qcustomplot.h:3107–3116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3105*/
3106template <class DataType>
3107typename QCPDataContainer<DataType>::const_iterator QCPDataContainer<DataType>::findBegin(double sortKey, bool expandedRange) const
3108{
3109 if (isEmpty())
3110 return constEnd();
3111
3112 QCPDataContainer<DataType>::const_iterator it = std::lower_bound(constBegin(), constEnd(), DataType::fromSortKey(sortKey), qcpLessThanSortKey<DataType>);
3113 if (expandedRange && it != constBegin()) // also covers it == constEnd case, and we know --constEnd is valid because mData isn't empty
3114 --it;
3115 return it;
3116}
3117
3118/*!
3119 Returns an iterator to the element after the data point with a (sort-)key that is equal to, just

Callers 3

selectTestRectMethod · 0.45
findBeginMethod · 0.45
selectTestMethod · 0.45

Calls 3

isEmptyFunction · 0.85
fromSortKeyFunction · 0.85
lower_boundFunction · 0.50

Tested by

no test coverage detected