MCPcopy Create free account
hub / github.com/MITK/MITK / GetByKey

Method GetByKey

Plugins/org.blueberry.core.runtime/src/internal/berryKeyedHashSet.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78KeyedElement::Pointer KeyedHashSet::GetByKey(const QString& key) const
79{
80 if (elements.empty()) return KeyedElement::Pointer();
81
82 KeyedElement::Pointer x(new LocalElement(key));
83 QSet<KeyedElement::Pointer>::const_iterator i = elements.find(x);
84 if (i != elements.end()) return *i;
85 return KeyedElement::Pointer();
86}
87
88bool KeyedHashSet::IsEmpty() const
89{

Callers 5

AddContributionMethod · 0.80
HasContributionMethod · 0.80
GetNamespaceIndexMethod · 0.80

Calls 3

emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected