Back to index

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

hashkey wrapper using nsAString KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsStringHashKey:
Inheritance graph
Collaboration diagram for nsStringHashKey:
Collaboration graph

List of all members.

Public Types

typedef const nsAString & KeyType
typedef const nsAString * KeyTypePointer

Public Member Functions

 nsStringHashKey (KeyTypePointer aStr)
 nsStringHashKey (const nsStringHashKey &toCopy)
 ~nsStringHashKey ()
KeyType GetKey () const
KeyTypePointer GetKeyPointer () const
PRBool KeyEquals (const KeyTypePointer aKey) const

Static Public Member Functions

static KeyTypePointer KeyToPointer (KeyType aKey)
static PLDHashNumber HashKey (const KeyTypePointer aKey)

Public Attributes

PLDHashNumber keyHash

Private Attributes

const nsString mStr

Detailed Description

hashkey wrapper using nsAString KeyType

See also:
nsTHashtable::EntryType for specification

Definition at line 79 of file nsHashKeys.h.

Member Typedef Documentation

typedef const nsAString& nsStringHashKey::KeyType

Definition at line 82 of file nsHashKeys.h.

Definition at line 83 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum

Definition at line 101 of file nsHashKeys.h.

Constructor & Destructor Documentation

Definition at line 85 of file nsHashKeys.h.

: mStr(*aStr) { }

Definition at line 86 of file nsHashKeys.h.

: mStr(toCopy.mStr) { }

Definition at line 87 of file nsHashKeys.h.

{ }

Member Function Documentation

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

Definition at line 89 of file nsHashKeys.h.

{ return mStr; }

Here is the caller graph for this function:

Definition at line 90 of file nsHashKeys.h.

{ return &mStr; }

Here is the caller graph for this function:

static PLDHashNumber nsStringHashKey::HashKey ( const KeyTypePointer  aKey) [inline, static]

Reimplemented in GlobalFontEntry.

Definition at line 97 of file nsHashKeys.h.

    return HashString(*aKey);

Here is the call graph for this function:

Reimplemented in GlobalFontEntry.

Definition at line 91 of file nsHashKeys.h.

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

Definition at line 96 of file nsHashKeys.h.

{ return &aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 104 of file nsHashKeys.h.

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