Back to index

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

hashkey wrapper using PRUint32 KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsUint32HashKey:
Inheritance graph
Collaboration diagram for nsUint32HashKey:
Collaboration graph

List of all members.

Public Types

typedef const PRUint32KeyType
typedef const PRUint32KeyTypePointer

Public Member Functions

 nsUint32HashKey (KeyTypePointer aKey)
 nsUint32HashKey (const nsUint32HashKey &toCopy)
 ~nsUint32HashKey ()
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 PRUint32 mValue

Detailed Description

hashkey wrapper using PRUint32 KeyType

See also:
nsTHashtable::EntryType for specification

Definition at line 143 of file nsHashKeys.h.

Member Typedef Documentation

Definition at line 146 of file nsHashKeys.h.

Definition at line 147 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum

Definition at line 159 of file nsHashKeys.h.

Constructor & Destructor Documentation

Definition at line 149 of file nsHashKeys.h.

: mValue(*aKey) { }

Definition at line 150 of file nsHashKeys.h.

: mValue(toCopy.mValue) { }

Definition at line 151 of file nsHashKeys.h.

{ }

Member Function Documentation

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

Definition at line 153 of file nsHashKeys.h.

{ return mValue; }

Definition at line 154 of file nsHashKeys.h.

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

Definition at line 158 of file nsHashKeys.h.

{ return *aKey; }

Definition at line 155 of file nsHashKeys.h.

{ return *aKey == mValue; }
static KeyTypePointer nsUint32HashKey::KeyToPointer ( KeyType  aKey) [inline, static]

Definition at line 157 of file nsHashKeys.h.

{ return &aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 162 of file nsHashKeys.h.

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