Back to index

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

a "leaf-node", managed by the nsCategoryNode hashtable. More...

#include <nsCategoryManager.h>

Inheritance diagram for CategoryLeaf:
Inheritance graph
Collaboration diagram for CategoryLeaf:
Collaboration graph

List of all members.

Public Types

typedef const char * KeyType
typedef const char * KeyTypePointer

Public Member Functions

 CategoryLeaf (const char *aKey)
const char * GetKey () const
const char * GetKeyPointer () const
PRBool KeyEquals (const char *aKey) const

Static Public Member Functions

static const char * KeyToPointer (const char *aKey)
static PLDHashNumber HashKey (const char *aKey)

Public Attributes

const char * pValue
const char * nonpValue
PLDHashNumber keyHash

Detailed Description

a "leaf-node", managed by the nsCategoryNode hashtable.

we need to keep a "persistent value" (which will be written to the registry) and a non-persistent value (for the current runtime): these are usually the same, except when aPersist==PR_FALSE. The strings are permanently arena- allocated, and will never go away.

Definition at line 63 of file nsCategoryManager.h.

Member Typedef Documentation

typedef const char* nsDepCharHashKey::KeyType [inherited]

Definition at line 272 of file nsHashKeys.h.

typedef const char* nsDepCharHashKey::KeyTypePointer [inherited]

Definition at line 273 of file nsHashKeys.h.

Member Enumeration Documentation

anonymous enum [inherited]

Definition at line 288 of file nsHashKeys.h.

Constructor & Destructor Documentation

CategoryLeaf::CategoryLeaf ( const char *  aKey) [inline]

Definition at line 66 of file nsCategoryManager.h.

Member Function Documentation

const char* nsDepCharHashKey::GetKey ( void  ) const [inline, inherited]

Definition at line 279 of file nsHashKeys.h.

{ return mKey; }

Here is the caller graph for this function:

const char* nsDepCharHashKey::GetKeyPointer ( ) const [inline, inherited]

Definition at line 280 of file nsHashKeys.h.

{ return mKey; }
static PLDHashNumber nsDepCharHashKey::HashKey ( const char *  aKey) [inline, static, inherited]

Definition at line 287 of file nsHashKeys.h.

{ return HashCString(aKey); }

Here is the call graph for this function:

PRBool nsDepCharHashKey::KeyEquals ( const char *  aKey) const [inline, inherited]

Definition at line 281 of file nsHashKeys.h.

    return !strcmp(mKey, aKey);
static const char* nsDepCharHashKey::KeyToPointer ( const char *  aKey) [inline, static, inherited]

Definition at line 286 of file nsHashKeys.h.

{ return aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 71 of file nsCategoryManager.h.

Definition at line 70 of file nsCategoryManager.h.

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