Back to index

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

Hashtable key class to use with nsTHashtable/nsBaseHashtable. More...

#include <nsURIHashKey.h>

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

List of all members.

Public Types

enum  { ALLOW_MEMMOVE = PR_TRUE }
typedef nsIURIKeyType
typedef const nsIURIKeyTypePointer

Public Member Functions

 nsURIHashKey (const nsIURI *aKey)
 nsURIHashKey (const nsURIHashKey &toCopy)
 ~nsURIHashKey ()
nsIURIGetKey () const
const nsIURIGetKeyPointer () const
PRBool KeyEquals (const nsIURI *aKey) const

Static Public Member Functions

static const nsIURIKeyToPointer (nsIURI *aKey)
static PLDHashNumber HashKey (const nsIURI *aKey)

Public Attributes

PLDHashNumber keyHash

Private Attributes

nsCOMPtr< nsIURImKey

Detailed Description

Hashtable key class to use with nsTHashtable/nsBaseHashtable.

Definition at line 49 of file nsURIHashKey.h.


Member Typedef Documentation

Reimplemented in nsChromeRegistry::OverlayListEntry.

Definition at line 52 of file nsURIHashKey.h.

Reimplemented in nsChromeRegistry::OverlayListEntry.

Definition at line 53 of file nsURIHashKey.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ALLOW_MEMMOVE 

Definition at line 79 of file nsURIHashKey.h.


Constructor & Destructor Documentation

nsURIHashKey::nsURIHashKey ( const nsIURI aKey) [inline]

Definition at line 55 of file nsURIHashKey.h.

Definition at line 57 of file nsURIHashKey.h.

Definition at line 59 of file nsURIHashKey.h.


Member Function Documentation

nsIURI* nsURIHashKey::GetKey ( ) const [inline]

Definition at line 61 of file nsURIHashKey.h.

{ return mKey; }

Definition at line 62 of file nsURIHashKey.h.

{ return mKey; }
static PLDHashNumber nsURIHashKey::HashKey ( const nsIURI aKey) [inline, static]

Definition at line 73 of file nsURIHashKey.h.

                                                     {
        nsCAutoString spec;
        NS_CONST_CAST(nsIURI*,aKey)->GetSpec(spec);
        return nsCRT::HashCode(spec.get());
    }

Here is the call graph for this function:

PRBool nsURIHashKey::KeyEquals ( const nsIURI aKey) const [inline]

Definition at line 64 of file nsURIHashKey.h.

                                               {
        PRBool eq;
        if (NS_SUCCEEDED(mKey->Equals(NS_CONST_CAST(nsIURI*,aKey), &eq))) {
            return eq;
        }
        return PR_FALSE;
    }
static const nsIURI* nsURIHashKey::KeyToPointer ( nsIURI aKey) [inline, static]

Definition at line 72 of file nsURIHashKey.h.

{ return aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 82 of file nsURIHashKey.h.


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