Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

nsPtrHashKey< T > Class Template Reference

hashkey wrapper using T* KeyType More...

#include <nsHashKeys.h>

Inheritance diagram for nsPtrHashKey< T >:
Collaboration diagram for nsPtrHashKey< T >:

List of all members.

Public Types

enum  { ALLOW_MEMMOVE = 1 }
typedef T * KeyType
typedef const T * KeyTypePointer

Public Member Functions

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

Static Public Member Functions

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

Protected Attributes

T * mKey

Detailed Description

template<class T>
class nsPtrHashKey< T >

hashkey wrapper using T* KeyType

See also:
nsTHashtable::EntryType for specification

Member Typedef Documentation

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

Member Enumeration Documentation

template<class T>
anonymous enum

Constructor & Destructor Documentation

template<class T>
nsPtrHashKey< T >::nsPtrHashKey ( const T *  key  )  [inline]
template<class T>
nsPtrHashKey< T >::nsPtrHashKey ( const nsPtrHashKey< T > &  toCopy  )  [inline]
template<class T>
nsPtrHashKey< T >::~nsPtrHashKey (  )  [inline]

Member Function Documentation

template<class T>
KeyType nsPtrHashKey< T >::GetKey (  )  const [inline]
template<class T>
static PLDHashNumber nsPtrHashKey< T >::HashKey ( KeyTypePointer  key  )  [inline, static]
template<class T>
PRBool nsPtrHashKey< T >::KeyEquals ( KeyTypePointer  key  )  const [inline]
template<class T>
static KeyTypePointer nsPtrHashKey< T >::KeyToPointer ( KeyType  key  )  [inline, static]

Member Data Documentation

template<class T>
T* nsPtrHashKey< T >::mKey [protected]

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