[shared] StorageExpressionModelStore: fix memoization invalidation

Stored models need to be invalidate every time the storage changes
This commit is contained in:
Émilie Feral
2018-10-11 12:00:59 +02:00
parent 4137475561
commit b16c1e569e
4 changed files with 19 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ Ion::Storage::Record::ErrorStatus StorageCartesianFunctionStore::addEmptyModel()
return error;
}
void StorageCartesianFunctionStore::privateSetMemoizedModelAtIndex(int cacheIndex, Ion::Storage::Record record) const {
void StorageCartesianFunctionStore::setMemoizedModelAtIndex(int cacheIndex, Ion::Storage::Record record) const {
assert(cacheIndex >= 0 && cacheIndex < k_maxNumberOfMemoizedModels);
m_functions[cacheIndex] = StorageCartesianFunction(record);
}