MCPcopy Create free account
hub / github.com/KDE/kdevelop / operator -

Method operator -

kdevplatform/language/util/setrepository.cpp:1090–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090Set Set::operator -(const Set& rhs) const
1091{
1092 if (!m_tree || !rhs.m_tree)
1093 return *this;
1094
1095 Q_ASSERT(m_repository);
1096
1097 QMutexLocker lock(m_repository->m_mutex);
1098
1099 SetRepositoryAlgorithms alg(m_repository->m_dataRepository, m_repository);
1100
1101 Set ret(alg.set_subtract(m_tree, rhs.m_tree, m_repository->m_dataRepository.itemFromIndex(
1102 m_tree), m_repository->m_dataRepository.itemFromIndex(rhs.m_tree)), m_repository);
1103 ifDebug(alg.check(ret.m_tree));
1104 return ret;
1105}
1106
1107Set& Set::operator -=(const Set& rhs)
1108{

Callers

nothing calls this directly

Calls 3

set_subtractMethod · 0.80
itemFromIndexMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected