Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
nsAttrHashKey Class Reference

PLDHashEntryHdr implementation for nsAttrKey. More...

#include <nsDOMAttributeMap.h>

Inheritance diagram for nsAttrHashKey:
Inheritance graph
[legend]
Collaboration diagram for nsAttrHashKey:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { ALLOW_MEMMOVE = PR_TRUE }
typedef const nsAttrKeyKeyType
typedef const nsAttrKeyKeyTypePointer

Public Member Functions

 nsAttrHashKey (KeyTypePointer aKey)
 nsAttrHashKey (const nsAttrHashKey &aCopy)
 ~nsAttrHashKey ()
KeyType GetKey () const
KeyTypePointer GetKeyPointer () const
PRBool KeyEquals (KeyTypePointer aKey) const

Static Public Member Functions

static KeyTypePointer KeyToPointer (KeyType aKey)
static PLDHashNumber HashKey (KeyTypePointer aKey)

Public Attributes

PLDHashNumber keyHash

Private Attributes

nsAttrKey mKey

Detailed Description

PLDHashEntryHdr implementation for nsAttrKey.

Definition at line 79 of file nsDOMAttributeMap.h.


Member Typedef Documentation

Definition at line 82 of file nsDOMAttributeMap.h.

Definition at line 83 of file nsDOMAttributeMap.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ALLOW_MEMMOVE 

Definition at line 107 of file nsDOMAttributeMap.h.


Constructor & Destructor Documentation

Definition at line 85 of file nsDOMAttributeMap.h.

: mKey(*aKey) {}

Definition at line 86 of file nsDOMAttributeMap.h.

: mKey(aCopy.mKey) {}

Definition at line 87 of file nsDOMAttributeMap.h.

{}

Member Function Documentation

KeyType nsAttrHashKey::GetKey ( ) const [inline]

Definition at line 89 of file nsDOMAttributeMap.h.

{ return mKey; }

Definition at line 90 of file nsDOMAttributeMap.h.

{ return &mKey; }
static PLDHashNumber nsAttrHashKey::HashKey ( KeyTypePointer  aKey) [inline, static]

Definition at line 98 of file nsDOMAttributeMap.h.

    {
      if (!aKey)
        return 0;

      return (aKey->mNamespaceID >> 28) ^
             (aKey->mNamespaceID << 4) ^
             NS_PTR_TO_INT32(aKey->mLocalName);
    }

Definition at line 91 of file nsDOMAttributeMap.h.

    {
      return mKey.mLocalName == aKey->mLocalName &&
             mKey.mNamespaceID == aKey->mNamespaceID;
    }
static KeyTypePointer nsAttrHashKey::KeyToPointer ( KeyType  aKey) [inline, static]

Definition at line 97 of file nsDOMAttributeMap.h.

{ return &aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 110 of file nsDOMAttributeMap.h.


The documentation for this class was generated from the following file: