3 #include <SimoxUtility/json.h>
11 template <
class _CoreSegmentT>
23 std::lock_guard l(this->cache_mutex);
39 cache->id() =
id.getMemoryID();
45 std::lock_guard l(cache_mutex);
52 std::lock_guard l(cache_mutex);
53 return cache->hasCoreSegment(n);
59 std::lock_guard l(cache_mutex);
60 return cache->hasCoreSegment(n);
66 std::lock_guard l(cache_mutex);
67 return cache->hasProviderSegment(n);
73 std::lock_guard l(cache_mutex);
74 return cache->hasEntity(n);
80 std::lock_guard l(cache_mutex);
81 return cache->hasSnapshot(n);
87 std::lock_guard l(cache_mutex);
88 return cache->hasInstance(n);
93 std::unique_ptr<armem::wm::Memory>
cache;
96 mutable std::recursive_mutex cache_mutex;