ensure invalidated values are removed

When a node receives an InvalidateCache signal, it will
automatically signal its outputs to discard any cached values in
the invalidated time range
This commit is contained in:
itsmattkc
2019-11-17 12:31:10 +09:00
parent 863525c595
commit 35802d37b0
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ public:
QVariant get_cached_value(const TimeRange& time);
void cache_value(const TimeRange& time, const QVariant& value);
void drop_cached_values();
void drop_cached_values_overlapping(const TimeRange& time);
private:
QHash<TimeRange, QVariant> cached_values_;