Back to index

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

hashkey wrapper using void* KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsVoidPtrHashKey:
Inheritance graph
Collaboration diagram for nsVoidPtrHashKey:
Collaboration graph

List of all members.

Public Types

typedef const voidKeyType
typedef const voidKeyTypePointer

Public Member Functions

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

const voidmKey

Detailed Description

hashkey wrapper using void* KeyType

See also:
nsTHashtable::EntryType for specification

Definition at line 203 of file nsHashKeys.h.

Member Typedef Documentation

Definition at line 206 of file nsHashKeys.h.

Definition at line 207 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum

Definition at line 225 of file nsHashKeys.h.

Constructor & Destructor Documentation

Definition at line 209 of file nsHashKeys.h.

    mKey(key) { }

Definition at line 211 of file nsHashKeys.h.

    mKey(toCopy.mKey) { }

Definition at line 213 of file nsHashKeys.h.

{ }

Member Function Documentation

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

Definition at line 215 of file nsHashKeys.h.

{ return mKey; }

Definition at line 216 of file nsHashKeys.h.

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

Definition at line 221 of file nsHashKeys.h.

    return NS_PTR_TO_INT32(aKey) >>2;

Definition at line 218 of file nsHashKeys.h.

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

Definition at line 220 of file nsHashKeys.h.

{ return aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 228 of file nsHashKeys.h.

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