19 std::string containerID = (this->
id()).
str();
20 MaxHistorySize::setMaxHistorySize(maxSize, containerID);
28 result.removedSnapshots = this->truncate();
32 std::vector<EntitySnapshot>
35 std::vector<EntitySnapshot> removedElements;
40 removedElements.push_back(std::move(this->
_container.begin()->second));
45 return removedElements;
49 std::vector<Memory::Base::UpdateResult>
53 std::map<std::string, std::vector<const EntityUpdate*>> updatesPerCoreSegment;
56 updatesPerCoreSegment[
update.entityID.coreSegmentName].push_back(&
update);
59 std::vector<Memory::Base::UpdateResult> result;
61 std::vector<std::string> missingCoreSegmentNames;
62 for (
const auto& [coreSegmentName, updates] : updatesPerCoreSegment)
64 auto it = this->
_container.find(coreSegmentName);
71 [&result, &coreSegment, updates = &updates]()
76 Base::UpdateResult
ret{r};
78 result.push_back(
ret);
85 missingCoreSegmentNames.push_back(coreSegmentName);
89 if (not missingCoreSegmentNames.empty())
92 throw armem::error::MissingEntry::create<CoreSegment>(missingCoreSegmentNames.front(),
99 Memory::Base::UpdateResult
105 Base::UpdateResult result;