Back to index

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

hashkey wrapper using nsACString KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsCStringHashKey:
Inheritance graph
Collaboration diagram for nsCStringHashKey:
Collaboration graph

List of all members.

Public Types

typedef const nsACString & KeyType
typedef const nsACString * KeyTypePointer

Public Member Functions

 nsCStringHashKey (const nsACString *aStr)
 nsCStringHashKey (const nsCStringHashKey &toCopy)
 ~nsCStringHashKey ()
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 nsCString mStr

Detailed Description

hashkey wrapper using nsACString KeyType

See also:
nsTHashtable::EntryType for specification

Definition at line 112 of file nsHashKeys.h.

Member Typedef Documentation

typedef const nsACString& nsCStringHashKey::KeyType

Definition at line 115 of file nsHashKeys.h.

Definition at line 116 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum

Definition at line 132 of file nsHashKeys.h.

Constructor & Destructor Documentation

nsCStringHashKey::nsCStringHashKey ( const nsACString *  aStr) [inline]

Definition at line 118 of file nsHashKeys.h.

: mStr(*aStr) { }

Definition at line 119 of file nsHashKeys.h.

: mStr(toCopy.mStr) { }

Definition at line 120 of file nsHashKeys.h.

{ }

Member Function Documentation

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

Definition at line 122 of file nsHashKeys.h.

{ return mStr; }

Definition at line 123 of file nsHashKeys.h.

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

Definition at line 128 of file nsHashKeys.h.

    return HashString(*aKey);

Here is the call graph for this function:

Definition at line 125 of file nsHashKeys.h.

{ return mStr.Equals(*aKey); }
static KeyTypePointer nsCStringHashKey::KeyToPointer ( KeyType  aKey) [inline, static]

Definition at line 127 of file nsHashKeys.h.

{ return &aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 135 of file nsHashKeys.h.

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