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

Method squeeze

3rdparty/qcustomplot/qcustomplot.h:3075–3089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3073*/
3074template <class DataType>
3075void QCPDataContainer<DataType>::squeeze(bool preAllocation, bool postAllocation)
3076{
3077 if (preAllocation)
3078 {
3079 if (mPreallocSize > 0)
3080 {
3081 std::copy(begin(), end(), mData.begin());
3082 mData.resize(size());
3083 mPreallocSize = 0;
3084 }
3085 mPreallocIteration = 0;
3086 }
3087 if (postAllocation)
3088 mData.squeeze();
3089}
3090
3091/*!
3092 Returns an iterator to the data point with a (sort-)key that is equal to, just below, or just

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
endFunction · 0.85
sizeFunction · 0.85
resizeMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected