Back to index

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

#include <nsFontMetricsOS2.h>

Inheritance diagram for GlobalFontEntry:
Inheritance graph
[legend]
Collaboration diagram for GlobalFontEntry:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { ALLOW_MEMMOVE = PR_TRUE }
typedef const nsAString & KeyType
typedef const nsAString * KeyTypePointer

Public Member Functions

 GlobalFontEntry (KeyTypePointer aStr)
 GlobalFontEntry (const GlobalFontEntry &aToCopy)
 ~GlobalFontEntry ()
PRBool KeyEquals (const KeyTypePointer aKey) const
KeyType GetKey () const
KeyTypePointer GetKeyPointer () const

Static Public Member Functions

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

Public Attributes

USHORT mCodePage
nsMiniMetricsmMetrics
PRUint32mHaveCheckedCharMap
PRUint32mRepresentableCharMap
PLDHashNumber keyHash

Detailed Description

Definition at line 110 of file nsFontMetricsOS2.h.


Member Typedef Documentation

typedef const nsAString& nsStringHashKey::KeyType [inherited]

Definition at line 82 of file nsHashKeys.h.

typedef const nsAString* nsStringHashKey::KeyTypePointer [inherited]

Definition at line 83 of file nsHashKeys.h.


Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
ALLOW_MEMMOVE 

Definition at line 101 of file nsHashKeys.h.


Constructor & Destructor Documentation

Definition at line 113 of file nsFontMetricsOS2.h.

: nsStringHashKey(aStr) { }

Definition at line 114 of file nsFontMetricsOS2.h.

      : nsStringHashKey(aToCopy) { }

Definition at line 116 of file nsFontMetricsOS2.h.

  {
    nsMiniMetrics* metrics = mMetrics;
    while (metrics) {
      nsMiniMetrics* nextMetrics = metrics->mNext;
      if (metrics)
        delete metrics;
      metrics = nextMetrics;
    }
#ifdef PERF_HASGLYPH_CHAR_MAP
    if (mHaveCheckedCharMap) {
      nsMemory::Free(mHaveCheckedCharMap);
      nsMemory::Free(mRepresentableCharMap);
    }
#endif
  }

Member Function Documentation

KeyType nsStringHashKey::GetKey ( void  ) const [inline, inherited]

Definition at line 89 of file nsHashKeys.h.

{ return mStr; }

Here is the caller graph for this function:

KeyTypePointer nsStringHashKey::GetKeyPointer ( ) const [inline, inherited]

Definition at line 90 of file nsHashKeys.h.

{ return &mStr; }

Here is the caller graph for this function:

static PLDHashNumber GlobalFontEntry::HashKey ( const KeyTypePointer  aKey) [inline, static]

Reimplemented from nsStringHashKey.

Definition at line 138 of file nsFontMetricsOS2.h.

  {
    nsAutoString low(*aKey);
    ToLowerCase(low);
    return HashString(low);
  }

Here is the call graph for this function:

Reimplemented from nsStringHashKey.

Definition at line 134 of file nsFontMetricsOS2.h.

  {
    return GetKeyPointer()->Equals(*aKey, nsCaseInsensitiveStringComparator());
  }

Here is the call graph for this function:

static KeyTypePointer nsStringHashKey::KeyToPointer ( KeyType  aKey) [inline, static, inherited]

Definition at line 96 of file nsHashKeys.h.

{ return &aKey; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 145 of file nsFontMetricsOS2.h.

Definition at line 149 of file nsFontMetricsOS2.h.

Definition at line 146 of file nsFontMetricsOS2.h.

Definition at line 150 of file nsFontMetricsOS2.h.


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