##// END OF EJS Templates
Removed forgotten files form previous impl of VC, fixed wrong submodules...
Removed forgotten files form previous impl of VC, fixed wrong submodules init (was always erasing changes :( ) Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r12:4e36a737f884
r31:dec007be0b03
Show More
SingleThresholdCacheStrategy.h
22 lines | 712 B | text/x-c | CLexer
/ include / Variable / SingleThresholdCacheStrategy.h
#ifndef SCIQLOP_SINGLETHRESHOLDCACHESTRATEGY_H
#define SCIQLOP_SINGLETHRESHOLDCACHESTRATEGY_H
#include "Settings/SqpSettingsDefs.h"
#include "VariableCacheStrategy.h"
class SCIQLOP_CORE_EXPORT SingleThresholdCacheStrategy : public VariableCacheStrategy {
public:
SingleThresholdCacheStrategy() = default;
DateTimeRange computeRange(const DateTimeRange &currentCacheRange,
const DateTimeRange &rangeRequested) override
{
Q_UNUSED(currentCacheRange);
if(currentCacheRange.contains (rangeRequested*1.1))
return currentCacheRange;
return rangeRequested*2.;
}
};
#endif // SCIQLOP_SINGLETHRESHOLDCACHESTRATEGY_H