MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / remove

Method remove

src/host/ui/ipc_buffer_model.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void IpcBufferModel::remove(std::string_view variable_name) {
55 for (std::size_t i = 0; i < storage_.size(); ++i) {
56 if (storage_[i]->variable_name == variable_name) {
57 storage_.erase(storage_.begin() + static_cast<std::ptrdiff_t>(i));
58 slot_revision_.erase(slot_revision_.begin() +
59 static_cast<std::ptrdiff_t>(i));
60 ++revision_;
61 return;
62 }
63 }
64}
65
66std::uint64_t IpcBufferModel::revision_of(std::size_t i) const {
67 return slot_revision_.at(i);

Callers 2

TESTFunction · 0.80

Calls 3

eraseMethod · 0.80
beginMethod · 0.80
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64