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

Method count

kdevplatform/language/util/setrepository.cpp:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243unsigned int Set::count() const
244{
245 if (!m_repository || !m_tree)
246 return 0;
247 QMutexLocker lock(m_repository->m_mutex);
248
249 SetRepositoryAlgorithms alg(m_repository->m_dataRepository, m_repository);
250 return alg.count(m_repository->m_dataRepository.itemFromIndex(m_tree));
251}
252
253Set::Set(uint treeNode, BasicSetRepository* repository) : m_tree(treeNode)
254 , m_repository(repository)

Callers

nothing calls this directly

Calls 4

countFunction · 0.50
itemFromIndexMethod · 0.45
endMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected