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

Method removeAfter

3rdparty/qcustomplot/qcustomplot.h:2981–2988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2979*/
2980template <class DataType>
2981void QCPDataContainer<DataType>::removeAfter(double sortKey)
2982{
2983 QCPDataContainer<DataType>::iterator it = std::upper_bound(begin(), end(), DataType::fromSortKey(sortKey), qcpLessThanSortKey<DataType>);
2984 QCPDataContainer<DataType>::iterator itEnd = end();
2985 mData.erase(it, itEnd); // typically adds it to the postallocated block
2986 if (mAutoSqueeze)
2987 performAutoSqueeze();
2988}
2989
2990/*!
2991 Removes all data points with (sort-)keys between \a sortKeyFrom and \a sortKeyTo. if \a

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected