Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsCharPtrHashKey Class Reference

#include <nsHashKeys.h>

Inheritance diagram for nsCharPtrHashKey:

List of all members.


Detailed Description

hashkey wrapper for const char*; at construction, this class duplicates a string pointed to by the pointer so that it doesn't matter whether or not the string lives longer than the hash table.

Definition at line 289 of file nsHashKeys.h.


Public Types

enum  { ALLOW_MEMMOVE = PR_TRUE }
typedef const char * KeyType
typedef const char * KeyTypePointer

Public Member Functions

const char * GetKey () const
const char * GetKeyPointer () const
PRBool KeyEquals (KeyTypePointer aKey) const
 nsCharPtrHashKey (const nsCharPtrHashKey &toCopy)
 nsCharPtrHashKey (const char *aKey)

Static Public Member Functions

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

Public Attributes

PLDHashNumber keyHash

Private Attributes

const char * mKey

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

Generated by  Doxygen 1.6.0   Back to index