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

Method removeBefore

3rdparty/qcustomplot/qcustomplot.h:2966–2973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2964*/
2965template <class DataType>
2966void QCPDataContainer<DataType>::removeBefore(double sortKey)
2967{
2968 QCPDataContainer<DataType>::iterator it = begin();
2969 QCPDataContainer<DataType>::iterator itEnd = std::lower_bound(begin(), end(), DataType::fromSortKey(sortKey), qcpLessThanSortKey<DataType>);
2970 mPreallocSize += int(itEnd-it); // don't actually delete, just add it to the preallocated block (if it gets too large, squeeze will take care of it)
2971 if (mAutoSqueeze)
2972 performAutoSqueeze();
2973}
2974
2975/*!
2976 Removes all data points with (sort-)keys greater than or equal to \a sortKey.

Callers

nothing calls this directly

Calls 4

beginFunction · 0.85
endFunction · 0.85
fromSortKeyFunction · 0.85
lower_boundFunction · 0.50

Tested by

no test coverage detected