| 76 | } |
| 77 | |
| 78 | KeyedElement::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 | |
| 88 | bool KeyedHashSet::IsEmpty() const |
| 89 | { |
no test coverage detected