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

Method LazySet

kdevplatform/language/util/setrepository.h:407–412  ·  view source on GitHub ↗

@param rep The repository the set should belong/belongs to * @param lockBeforeAccess If this is nonzero, the given mutex will be locked before each modification to the repository. * @param basicSet If this is explicitly given, the given set will be used as base. However it will not be changed. * * @warning Watch for deadlocks, never use this class while the mutex given throug

Source from the content-addressed store, hash-verified

405 * @warning Watch for deadlocks, never use this class while the mutex given through lockBeforeAccess is locked
406 */
407 explicit LazySet(BasicSetRepository* rep, QMutex* lockBeforeAccess = nullptr, const Set& basicSet = Set()) : m_rep(
408 rep)
409 , m_set(basicSet)
410 , m_lockBeforeAccess(lockBeforeAccess)
411 {
412 }
413
414 void insert(const T& t)
415 {

Callers

nothing calls this directly

Calls 1

SetFunction · 0.85

Tested by

no test coverage detected