Merge pull request #1677 from wito/dynamic-state-new-data

Allow interrogating DynamicState for changes in data
This commit is contained in:
Joakim Hove
2020-04-03 11:16:33 +02:00
committed by GitHub

View File

@@ -118,6 +118,9 @@ class DynamicState {
return result;
}
bool is_new_data(size_t index) const {
return index == 0 || (at(index) != at(index - 1));
}
/**
If the current value has been changed the method will