| 2964 | */ |
| 2965 | template <class DataType> |
| 2966 | void 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. |
nothing calls this directly
no test coverage detected