MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / pointerCount

Method pointerCount

source/test/btree_test.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <typename Key, typename Pointer>
84size_t SimpleBTreeIndex<Key, Pointer>::pointerCount() const {
85 // If no begin pointer is set then the index is simply uninitialized.
86 if (!beginPointer)
87 return 0;
88 else
89 return pointers.size() + 1;
90}
91
92template <typename Key, typename Pointer>
93Pointer SimpleBTreeIndex<Key, Pointer>::pointer(size_t i) const {

Callers 6

shiftLeftMethod · 0.45
shiftRightMethod · 0.45
indexNeedsShiftMethod · 0.45
indexShiftMethod · 0.45
indexSplitMethod · 0.45
indexPointerCountMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected