##// END OF EJS Templates
Added true single threshold cache strategy and it behaves as expected...
Added true single threshold cache strategy and it behaves as expected Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r12:4e36a737f884
r12:4e36a737f884
Show More
ProportionalCacheStrategy.h
24 lines | 816 B | text/x-c | CLexer
/ include / Variable / ProportionalCacheStrategy.h
Added true single threshold cache strategy and it behaves as expected...
r12 #ifndef SCIQLOP_PROPORTIONALCACHESTRATEGY_H
#define SCIQLOP_PROPORTIONALCACHESTRATEGY_H
First init from SciQLop Core module...
r0
#include "Settings/SqpSettingsDefs.h"
#include "VariableCacheStrategy.h"
/// This class aims to hande the cache strategy.
Many fixes plus implemented var synchronization...
r9 class SCIQLOP_CORE_EXPORT ProportionalCacheStrategy : public VariableCacheStrategy {
First init from SciQLop Core module...
r0 public:
Many fixes plus implemented var synchronization...
r9 ProportionalCacheStrategy() = default;
First init from SciQLop Core module...
r0
Many fixes plus implemented var synchronization...
r9 DateTimeRange computeRange(const DateTimeRange &currentCacheRange,
First init from SciQLop Core module...
r0 const DateTimeRange &rangeRequested) override
{
Many fixes plus implemented var synchronization...
r9 Q_UNUSED(currentCacheRange);
First init from SciQLop Core module...
r0 auto toleranceFactor = SqpSettings::toleranceValue(
GENERAL_TOLERANCE_AT_UPDATE_KEY, GENERAL_TOLERANCE_AT_UPDATE_DEFAULT_VALUE);
Added basic usage of cache in VC, not tested yet...
r10 return rangeRequested*(1.+toleranceFactor);
First init from SciQLop Core module...
r0 }
};
Added true single threshold cache strategy and it behaves as expected...
r12 #endif // SCIQLOP_PROPORTIONALCACHESTRATEGY_H