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

Method remove

3rdparty/qcustomplot/qcustomplot.h:2998–3008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2996*/
2997template <class DataType>
2998void QCPDataContainer<DataType>::remove(double sortKeyFrom, double sortKeyTo)
2999{
3000 if (sortKeyFrom >= sortKeyTo || isEmpty())
3001 return;
3002
3003 QCPDataContainer<DataType>::iterator it = std::lower_bound(begin(), end(), DataType::fromSortKey(sortKeyFrom), qcpLessThanSortKey<DataType>);
3004 QCPDataContainer<DataType>::iterator itEnd = std::upper_bound(it, end(), DataType::fromSortKey(sortKeyTo), qcpLessThanSortKey<DataType>);
3005 mData.erase(it, itEnd);
3006 if (mAutoSqueeze)
3007 performAutoSqueeze();
3008}
3009
3010/*! \overload
3011

Callers

nothing calls this directly

Calls 7

isEmptyFunction · 0.85
beginFunction · 0.85
endFunction · 0.85
fromSortKeyFunction · 0.85
eraseMethod · 0.80
lower_boundFunction · 0.50
upper_boundFunction · 0.50

Tested by

no test coverage detected