Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
xptiWorkingSet.cpp File Reference
#include "xptiprivate.h"
#include "nsString.h"

Go to the source code of this file.

Defines

#define XPTI_STRING_ARENA_BLOCK_SIZE   (1024 * 1)
#define XPTI_STRUCT_ARENA_BLOCK_SIZE   (1024 * 1)
#define XPTI_HASHTABLE_SIZE   128

Functions

 IIDGetKey (PLDHashTable *table, PLDHashEntryHdr *entry)
 IIDHash (PLDHashTable *table, const void *key)
 IIDMatch (PLDHashTable *table, const PLDHashEntryHdr *entry, const void *key)
 NameGetKey (PLDHashTable *table, PLDHashEntryHdr *entry)
 NameMatch (PLDHashTable *table, const PLDHashEntryHdr *entry, const void *key)
 xpti_Remover (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void *arg)
 xpti_Invalidator (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void *arg)

Variables

static const struct PLDHashTableOps

Define Documentation

Definition at line 47 of file xptiWorkingSet.cpp.

Definition at line 45 of file xptiWorkingSet.cpp.

Definition at line 46 of file xptiWorkingSet.cpp.


Function Documentation

IIDGetKey ( PLDHashTable table,
PLDHashEntryHdr entry 
)

Definition at line 52 of file xptiWorkingSet.cpp.

{
    return ((xptiHashEntry*)entry)->value->GetTheIID();
}
IIDHash ( PLDHashTable table,
const void key 
)

Definition at line 58 of file xptiWorkingSet.cpp.

{
    return (PLDHashNumber) ((const nsIID*)key)->m0;        
}
IIDMatch ( PLDHashTable table,
const PLDHashEntryHdr entry,
const void key 
)

Definition at line 64 of file xptiWorkingSet.cpp.

{
    const nsIID* iid1 = ((xptiHashEntry*)entry)->value->GetTheIID();
    const nsIID* iid2 = (const nsIID*)key;
    
    return iid1 == iid2 || iid1->Equals(*iid2);
}       

Here is the call graph for this function:

NameGetKey ( PLDHashTable table,
PLDHashEntryHdr entry 
)

Definition at line 89 of file xptiWorkingSet.cpp.

{
    return ((xptiHashEntry*)entry)->value->GetTheName();
}
NameMatch ( PLDHashTable table,
const PLDHashEntryHdr entry,
const void key 
)

Definition at line 95 of file xptiWorkingSet.cpp.

{
    const char* str1 = ((xptiHashEntry*)entry)->value->GetTheName();
    const char* str2 = (const char*) key;
    return str1 == str2 || 0 == PL_strcmp(str1, str2);
}       
xpti_Invalidator ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  number,
void arg 
)

Definition at line 162 of file xptiWorkingSet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

xpti_Remover ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  number,
void arg 
)

Definition at line 155 of file xptiWorkingSet.cpp.

{
    return PL_DHASH_REMOVE;
}       

Here is the caller graph for this function:


Variable Documentation

struct PLDHashTableOps [static]