Back to index

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

#include <nsUnicodeFontMappingCache.h>

Collaboration diagram for nsUnicodeFontMappingCache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsUnicodeFontMappingCache ()
 ~nsUnicodeFontMappingCache ()
PRBool Get (const nsString &key, nsUnicodeFontMappingMac **item)
void Set (const nsString &key, nsUnicodeFontMappingMac *item)

Static Private Member Functions

static PR_CALLBACK PLHashNumber HashKey (const void *aKey)
static PR_CALLBACK PRIntn CompareKeys (const void *v1, const void *v2)
static PR_CALLBACK PRIntn CompareValues (const void *v1, const void *v2)
static PR_CALLBACK PRIntn FreeHashEntries (PLHashEntry *he, PRIntn italic, void *arg)

Private Attributes

struct PLHashTablemTable
PRUint32 mCount

Detailed Description

Definition at line 44 of file nsUnicodeFontMappingCache.h.


Constructor & Destructor Documentation

Definition at line 47 of file nsUnicodeFontMappingCache.h.

Here is the call graph for this function:

Definition at line 55 of file nsUnicodeFontMappingCache.h.

Here is the call graph for this function:


Member Function Documentation

static PR_CALLBACK PRIntn nsUnicodeFontMappingCache::CompareKeys ( const void v1,
const void v2 
) [inline, static, private]

Definition at line 86 of file nsUnicodeFontMappingCache.h.

       {
              return ((nsString *)v1) -> Equals(* ((nsString *)v2));
       };

Here is the call graph for this function:

Here is the caller graph for this function:

static PR_CALLBACK PRIntn nsUnicodeFontMappingCache::CompareValues ( const void v1,
const void v2 
) [inline, static, private]

Definition at line 90 of file nsUnicodeFontMappingCache.h.

Here is the call graph for this function:

Here is the caller graph for this function:

static PR_CALLBACK PRIntn nsUnicodeFontMappingCache::FreeHashEntries ( PLHashEntry he,
PRIntn  italic,
void arg 
) [inline, static, private]

Definition at line 94 of file nsUnicodeFontMappingCache.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 65 of file nsUnicodeFontMappingCache.h.

       {
              *item = (nsUnicodeFontMappingMac*)PL_HashTableLookup(mTable, &key);
              return nsnull != (*item);
       };

Here is the call graph for this function:

static PR_CALLBACK PLHashNumber nsUnicodeFontMappingCache::HashKey ( const void aKey) [inline, static, private]

Definition at line 81 of file nsUnicodeFontMappingCache.h.

       {
    nsString* key = (nsString*)aKey;
              return nsCRT::HashCode(key->get());
       };

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 70 of file nsUnicodeFontMappingCache.h.

       {
              nsString *newKey = new nsString(key);
              if (newKey)
              {
                     PL_HashTableAdd(mTable, newKey, item);
                     mCount ++;
              }
       };

Here is the call graph for this function:


Member Data Documentation

Definition at line 102 of file nsUnicodeFontMappingCache.h.

Definition at line 101 of file nsUnicodeFontMappingCache.h.


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