MCPcopy Create free account
hub / github.com/KDE/kdevelop / countFreeItems

Method countFreeItems

kdevplatform/util/embeddedfreetree.h:631–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629 }
630
631 uint countFreeItems(int item) const
632 {
633 if (item == -1)
634 return 0;
635 const Data& current(m_items[item]);
636
637 return 1 + countFreeItems(ItemHandler::leftChild(current)) + countFreeItems(ItemHandler::rightChild(current));
638 }
639
640 int leftMostChild(int pos) const
641 {

Callers 1

verifyMethod · 0.45

Calls

no outgoing calls

Tested by 1

verifyMethod · 0.36