##// END OF EJS Templates
Fixed untimely update of the range to be displayed in the variable widget
Fixed untimely update of the range to be displayed in the variable widget

File last commit:

r622:5ee6983593ec
r654:aff19a50babf
Show More
VariableCacheStrategy.h
40 lines | 960 B | text/x-c | CLexer
/ core / include / Variable / VariableCacheStrategy.h
Implementation of the VariableCacheStrategy
r531 #ifndef SCIQLOP_VARIABLECACHESTRATEGY_H
#define SCIQLOP_VARIABLECACHESTRATEGY_H
#include "CoreGlobal.h"
#include <QLoggingCategory>
#include <QObject>
#include <Data/SqpRange.h>
#include <QLoggingCategory>
#include <Common/spimpl.h>
#include <utility>
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableCacheStrategy)
class Variable;
/**
* Possible types of zoom operation
*/
enum class CacheStrategy { FixedTolerance, TwoThreashold };
/// This class aims to hande the cache strategy.
class SCIQLOP_CORE_EXPORT VariableCacheStrategy : public QObject {
Q_OBJECT
public:
explicit VariableCacheStrategy(QObject *parent = 0);
Change strategy method name
r622 std::pair<SqpRange, SqpRange> computeStrategyRanges(const SqpRange &vRange,
const SqpRange &rangeRequested);
Implementation of the VariableCacheStrategy
r531
private:
class VariableCacheStrategyPrivate;
spimpl::unique_impl_ptr<VariableCacheStrategyPrivate> impl;
};
#endif // SCIQLOP_VARIABLECACHESTRATEGY_H