MCPcopy Create free account
hub / github.com/ElementsProject/elements / ~Iterator

Method ~Iterator

src/leveldb/table/iterator.cc:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14Iterator::~Iterator() {
15 if (!cleanup_head_.IsEmpty()) {
16 cleanup_head_.Run();
17 for (CleanupNode* node = cleanup_head_.next; node != nullptr;) {
18 node->Run();
19 CleanupNode* next_node = node->next;
20 delete node;
21 node = next_node;
22 }
23 }
24}
25
26void Iterator::RegisterCleanup(CleanupFunction func, void* arg1, void* arg2) {
27 assert(func != nullptr);

Callers

nothing calls this directly

Calls 2

IsEmptyMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected