cache: began base implementation of "shifting" the cache
Should be a fairly important optimization to make.
This commit is contained in:
@@ -46,6 +46,8 @@ public:
|
||||
|
||||
bool IsFullyValidated() const;
|
||||
|
||||
void Shift(const rational& from, const rational& to);
|
||||
|
||||
const TimeRangeList& GetInvalidatedRanges() const
|
||||
{
|
||||
return invalidated_;
|
||||
@@ -70,6 +72,8 @@ protected:
|
||||
|
||||
virtual void InvalidateEvent(const TimeRange& range);
|
||||
|
||||
virtual void ShiftEvent(const rational& from, const rational& to);
|
||||
|
||||
private:
|
||||
TimeRangeList invalidated_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user