MCPcopy Create free account
hub / github.com/amule-project/amule / GetFirstVisibleChild

Method GetFirstVisibleChild

src/StatTree.cpp:146–152  ·  view source on GitHub ↗

Note: these functions do not lock the list, because it is already locked at the time they're called

Source from the content-addressed store, hash-verified

144
145// Note: these functions do not lock the list, because it is already locked at the time they're called
146StatTreeItemIterator CStatTreeItemBase::GetFirstVisibleChild(uint32_t max_children)
147{
148 StatTreeItemIterator it = m_children.begin();
149 m_visible_counter = --max_children;
150 while (it != m_children.end() && !(*it)->IsVisible()) ++it;
151 return it;
152}
153
154void CStatTreeItemBase::GetNextVisibleChild(StatTreeItemIterator& it)
155{

Callers 1

FillTreeMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
IsVisibleMethod · 0.45

Tested by

no test coverage detected