Back to index

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

hashkey wrapper using nsISupports* KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsISupportsHashKey:
Inheritance graph
Collaboration diagram for nsISupportsHashKey:
Collaboration graph

List of all members.

Public Types

typedef nsISupports * KeyType
typedef const nsISupports * KeyTypePointer

Public Member Functions

 nsISupportsHashKey (const nsISupports *key)
 nsISupportsHashKey (const nsISupportsHashKey &toCopy)
 ~nsISupportsHashKey ()
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

nsCOMPtr< nsISupports > mSupports

Detailed Description

hashkey wrapper using nsISupports* KeyType

See also:
nsTHashtable::EntryType for specification

Definition at line 170 of file nsHashKeys.h.

Member Typedef Documentation

typedef nsISupports* nsISupportsHashKey::KeyType

Definition at line 173 of file nsHashKeys.h.

Definition at line 174 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum

Definition at line 192 of file nsHashKeys.h.

Constructor & Destructor Documentation

nsISupportsHashKey::nsISupportsHashKey ( const nsISupports *  key) [inline]

Definition at line 176 of file nsHashKeys.h.

    mSupports(NS_CONST_CAST(nsISupports*,key)) { }

Definition at line 178 of file nsHashKeys.h.

    mSupports(toCopy.mSupports) { }

Definition at line 180 of file nsHashKeys.h.

{ }

Member Function Documentation

KeyType nsISupportsHashKey::GetKey ( void  ) const [inline]

Definition at line 182 of file nsHashKeys.h.

{ return mSupports; }

Here is the caller graph for this function:

Definition at line 183 of file nsHashKeys.h.

{ return mSupports; }
static PLDHashNumber nsISupportsHashKey::HashKey ( KeyTypePointer  aKey) [inline, static]

Definition at line 188 of file nsHashKeys.h.

    return NS_PTR_TO_INT32(aKey) >>2;

Definition at line 185 of file nsHashKeys.h.

{ return aKey == mSupports; }
static KeyTypePointer nsISupportsHashKey::KeyToPointer ( KeyType  aKey) [inline, static]

Definition at line 187 of file nsHashKeys.h.

{ return aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

nsCOMPtr<nsISupports> nsISupportsHashKey::mSupports [private]

Definition at line 195 of file nsHashKeys.h.

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