Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsVoidKey Class Reference

#include <nsHashtable.h>

List of all members.

Public Member Functions

 nsVoidKey (const nsVoidKey &aKey)
 nsVoidKey (void *key)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKey * Clone () const
voidGetValue ()

Protected Attributes


Detailed Description

Definition at line 306 of file nsHashtable.h.

Constructor & Destructor Documentation

nsVoidKey::nsVoidKey ( const nsVoidKey aKey) [inline]

Definition at line 311 of file nsHashtable.h.

                                     : mKey(aKey.mKey) {
#ifdef DEBUG
        mKeyType = aKey.mKeyType;

Here is the caller graph for this function:

nsVoidKey::nsVoidKey ( void key) [inline]

Definition at line 317 of file nsHashtable.h.

#ifdef DEBUG
        mKeyType = VoidKey;
        mKey = key;

Member Function Documentation

nsHashKey* nsVoidKey::Clone ( void  ) const [inline]

Definition at line 333 of file nsHashtable.h.

        return new nsVoidKey(mKey);

Here is the call graph for this function:

PRBool nsVoidKey::Equals ( const nsHashKey *  aKey) const [inline]

Definition at line 328 of file nsHashtable.h.

        NS_ASSERTION(aKey->GetKeyType() == VoidKey, "mismatched key types");
        return (mKey == ((const nsVoidKey *) aKey)->mKey);
void* nsVoidKey::GetValue ( void  ) [inline]

Definition at line 337 of file nsHashtable.h.

{ return mKey; }

Here is the caller graph for this function:

PRUint32 nsVoidKey::HashCode ( void  ) const [inline]

Definition at line 324 of file nsHashtable.h.

        return NS_PTR_TO_INT32(mKey);

Member Data Documentation

void* nsVoidKey::mKey [protected]

Definition at line 308 of file nsHashtable.h.

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