Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
nsPtrHashKey< T > Class Template Reference

#include <nsPtrHashKey.h>

Inheritance diagram for nsPtrHashKey< T >:
Inheritance graph
[legend]
Collaboration diagram for nsPtrHashKey< T >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { ALLOW_MEMMOVE = PR_TRUE }
typedef const TKeyType
typedef const TKeyTypePointer

Public Member Functions

 nsPtrHashKey (const T *key)
 nsPtrHashKey (const nsPtrHashKey< T > &toCopy)
 ~nsPtrHashKey ()
KeyType GetKey () const
KeyTypePointer GetKeyPointer () const
PRBool KeyEquals (KeyTypePointer key) const

Static Public Member Functions

static KeyTypePointer KeyToPointer (KeyType key)
static PLDHashNumber HashKey (KeyTypePointer key)

Public Attributes

PLDHashNumber keyHash

Private Attributes

const TmKey

Detailed Description

template<class T>
class nsPtrHashKey< T >

Definition at line 52 of file nsPtrHashKey.h.


Member Typedef Documentation

template<class T>
typedef const T* nsPtrHashKey< T >::KeyType

Definition at line 55 of file nsPtrHashKey.h.

template<class T>
typedef const T* nsPtrHashKey< T >::KeyTypePointer

Definition at line 56 of file nsPtrHashKey.h.


Member Enumeration Documentation

template<class T>
anonymous enum
Enumerator:
ALLOW_MEMMOVE 

Definition at line 72 of file nsPtrHashKey.h.


Constructor & Destructor Documentation

template<class T>
nsPtrHashKey< T >::nsPtrHashKey ( const T key) [inline]

Definition at line 58 of file nsPtrHashKey.h.

: mKey(key) {}
template<class T>
nsPtrHashKey< T >::nsPtrHashKey ( const nsPtrHashKey< T > &  toCopy) [inline]

Definition at line 59 of file nsPtrHashKey.h.

: mKey(toCopy.mKey) {}
template<class T>
nsPtrHashKey< T >::~nsPtrHashKey ( ) [inline]

Definition at line 60 of file nsPtrHashKey.h.

{}

Member Function Documentation

template<class T>
KeyType nsPtrHashKey< T >::GetKey ( ) const [inline]

Definition at line 62 of file nsPtrHashKey.h.

{ return mKey; }
template<class T>
KeyTypePointer nsPtrHashKey< T >::GetKeyPointer ( ) const [inline]

Definition at line 63 of file nsPtrHashKey.h.

{ return mKey; }
template<class T>
static PLDHashNumber nsPtrHashKey< T >::HashKey ( KeyTypePointer  key) [inline, static]

Definition at line 68 of file nsPtrHashKey.h.

  {
    return NS_PTR_TO_INT32(key) >> 2;
  }
template<class T>
PRBool nsPtrHashKey< T >::KeyEquals ( KeyTypePointer  key) const [inline]

Definition at line 65 of file nsPtrHashKey.h.

{ return key == mKey; }
template<class T>
static KeyTypePointer nsPtrHashKey< T >::KeyToPointer ( KeyType  key) [inline, static]

Definition at line 67 of file nsPtrHashKey.h.

{ return key; }

Member Data Documentation

Definition at line 113 of file pldhash.h.

template<class T>
const T* nsPtrHashKey< T >::mKey [private]

Definition at line 75 of file nsPtrHashKey.h.


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