MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / operator()

Method operator()

source/core/StarBTreeDatabase.cpp:267–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266 struct LeafBlocksVisitor {
267 bool operator()(shared_ptr<IndexNode> const&) {
268 return true;
269 }
270
271 bool operator()(shared_ptr<LeafNode> const& leaf) {
272 leafBlockCount += 1 + parent->leafTailBlocks(leaf->self).size();

Callers

nothing calls this directly

Calls 2

leafTailBlocksMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected