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

nsDepCharHashKey Class Reference

#include <nsHashKeys.h>

Inheritance diagram for nsDepCharHashKey:


List of all members.

Detailed Description

hashkey wrapper for "dependent" const char*; this class does not "own" its string pointer.

This class must only be used if the strings have a lifetime longer than the hashtable they occupy. This normally occurs only for static strings or strings that have been arena-allocated.

See also:
nsTHashtable::EntryType for specification

Definition at line 259 of file nsHashKeys.h.

Public Types

typedef const char * KeyType
typedef const char * KeyTypePointer

Public Member Functions

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

Static Public Member Functions

static PLDHashNumber HashKey (const char *aKey)
static const char * KeyToPointer (const char *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