Home | History | Annotate | Download | only in dom

Lines Matching refs:QualifiedName

35 class QualifiedName : public FastAllocBase {
59 QualifiedName(const AtomicString& prefix, const AtomicString& localName, const AtomicString& namespaceURI);
60 QualifiedName(const AtomicString& prefix, const char* localName, const AtomicString& namespaceURI);
61 ~QualifiedName() { deref(); }
63 QualifiedName() : m_impl(0) { }
66 QualifiedName(const QualifiedName& other) : m_impl(other.m_impl) { ref(); }
67 const QualifiedName& operator=(const QualifiedName& other) { other.ref(); deref(); m_impl = other.m_impl; return *this; }
69 bool operator==(const QualifiedName& other) const { return m_impl == other.m_impl; }
70 bool operator!=(const QualifiedName& other) const { return !(*this == other); }
72 bool matches(const QualifiedName& other) const { return m_impl == other.m_impl || (localName() == other.localName() && namespaceURI() == other.namespaceURI()); }
75 void setPrefix(const AtomicString& prefix) { *this = QualifiedName(prefix, localName(), namespaceURI()); }
100 extern const QualifiedName anyName;
101 inline const QualifiedName& anyQName() { return anyName; }
104 inline bool operator==(const AtomicString& a, const QualifiedName& q) { return a == q.localName(); }
105 inline bool operator!=(const AtomicString& a, const QualifiedName& q) { return a != q.localName(); }
106 inline bool operator==(const QualifiedName& q, const AtomicString& a) { return a == q.localName(); }
107 inline bool operator!=(const QualifiedName& q, const AtomicString& a) { return a != q.localName(); }
143 static unsigned hash(const QualifiedName& name) { return hash(name.impl()); }
145 static unsigned hash(const QualifiedName::QualifiedNameImpl* name)
151 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a == b; }
152 static bool equal(const QualifiedName::QualifiedNameImpl* a, const QualifiedName::QualifiedNameImpl* b) { return a == b; }
163 template<> struct DefaultHash<WebCore::QualifiedName> {
167 template<> struct HashTraits<WebCore::QualifiedName> : GenericHashTraits<WebCore::QualifiedName> {
169 static WebCore::QualifiedName emptyValue() { return WebCore::QualifiedName(WebCore::nullAtom, WebCore::nullAtom, WebCore::nullAtom); }
170 static void constructDeletedValue(WebCore::QualifiedName& slot) { new (&slot) WebCore::QualifiedName(WebCore::nullAtom, WebCore::AtomicString(HashTableDeletedValue), WebCore::nullAtom); }
171 static bool isDeletedValue(const WebCore::QualifiedName& slot) { return slot.localName().isHashTableDeletedValue(); }