nsHashKeys.h File Reference


Detailed Description

Each of these classes follows the nsTHashtable::EntryType specification

Lightweight keytypes provided here: nsStringHashKey nsCStringHashKey nsUint32HashKey nsVoidPtrHashKey nsClearingVoidPtrHashKey nsISupportsHashKey nsIDHashKey nsDepCharHashKey nsCharPtrHashKey nsUnicharPtrHashKey nsHashableHashKey


Classes

class  nsStringHashKey
 hashkey wrapper using nsAString KeyType More...
class  nsCStringHashKey
 hashkey wrapper using nsACString KeyType More...
class  nsUint32HashKey
 hashkey wrapper using PRUint32 KeyType More...
class  nsISupportsHashKey
 hashkey wrapper using nsISupports* KeyType More...
class  nsVoidPtrHashKey
 hashkey wrapper using void* KeyType More...
class  nsClearingVoidPtrHashKey
 hashkey wrapper using void* KeyType, that sets key to NULL upon destruction. More...
class  nsIDHashKey
 hashkey wrapper using nsID KeyType More...
class  nsDepCharHashKey
 hashkey wrapper for "dependent" const char*; this class does not "own" its string pointer. More...
class  nsCharPtrHashKey
 hashkey wrapper for const char*; at construction, this class duplicates a string pointed to by the pointer so that it doesn't matter whether or not the string lives longer than the hash table. More...
class  nsUnicharPtrHashKey
 hashkey wrapper for const PRUnichar*; at construction, this class duplicates a string pointed to by the pointer so that it doesn't matter whether or not the string lives longer than the hash table. More...
class  nsHashableHashKey
 Hashtable key class to use with objects that support nsIHashable. More...

Functions

NS_COM_GLUE PRUint32 HashString (const nsAString &aStr)
NS_COM_GLUE PRUint32 HashString (const nsACString &aStr)
NS_COM_GLUE PRUint32 HashString (const char *aKey)
NS_COM_GLUE PRUint32 HashString (const PRUnichar *aKey)


Function Documentation

NS_COM_GLUE PRUint32 HashString ( const nsAString aStr  ) 

NS_COM_GLUE PRUint32 HashString ( const nsACString aStr  ) 

NS_COM_GLUE PRUint32 HashString ( const char aKey  ) 

NS_COM_GLUE PRUint32 HashString ( const PRUnichar aKey  ) 


Generated Mozilla by doxygen 1.5.6