Public Member Functions | Protected Attributes

nsHashtable Class Reference

#include <nsHashtable.h>

Inheritance diagram for nsHashtable:
Collaboration diagram for nsHashtable:

List of all members.

Public Member Functions

 nsHashtable (PRUint32 aSize=16, PRBool threadSafe=0)
virtual ~nsHashtable ()
PRInt32 Count (void)
PRBool Exists (nsHashKey *aKey)
void * Put (nsHashKey *aKey, void *aData)
void * Get (nsHashKey *aKey)
void * Remove (nsHashKey *aKey)
nsHashtableClone ()
void Enumerate (nsHashtableEnumFunc aEnumFunc, void *aClosure=NULL)
void Reset ()
void Reset (nsHashtableEnumFunc destroyFunc, void *aClosure=NULL)
 nsHashtable (nsIObjectInputStream *aStream, nsHashtableReadEntryFunc aReadEntryFunc, nsHashtableFreeEntryFunc aFreeEntryFunc, nsresult *aRetVal)
nsresult Write (nsIObjectOutputStream *aStream, nsHashtableWriteDataFunc aWriteDataFunc) const

Protected Attributes

PLDHashTable mHashtable
PRBool mEnumerating

Constructor & Destructor Documentation

nsHashtable::nsHashtable ( PRUint32  aSize = 16,
PRBool  threadSafe = 0 
virtual nsHashtable::~nsHashtable (  )  [virtual]
nsHashtable::nsHashtable ( nsIObjectInputStream aStream,
nsHashtableReadEntryFunc  aReadEntryFunc,
nsHashtableFreeEntryFunc  aFreeEntryFunc,
nsresult aRetVal 

Member Function Documentation

nsHashtable* nsHashtable::Clone (  ) 

Reimplemented in nsObjectHashtable, and nsSupportsHashtable.

PRInt32 nsHashtable::Count ( void   )  [inline]

Reimplemented in nsSupportsHashtable.

void nsHashtable::Enumerate ( nsHashtableEnumFunc  aEnumFunc,
void *  aClosure = NULL 
PRBool nsHashtable::Exists ( nsHashKey aKey  ) 

Reimplemented in nsSupportsHashtable.

void* nsHashtable::Get ( nsHashKey aKey  ) 

Reimplemented in nsSupportsHashtable.

void* nsHashtable::Put ( nsHashKey aKey,
void *  aData 
void* nsHashtable::Remove ( nsHashKey aKey  ) 
void nsHashtable::Reset (  ) 

Reimplemented in nsObjectHashtable, and nsSupportsHashtable.

void nsHashtable::Reset ( nsHashtableEnumFunc  destroyFunc,
void *  aClosure = NULL 
nsresult nsHashtable::Write ( nsIObjectOutputStream aStream,
nsHashtableWriteDataFunc  aWriteDataFunc 
) const

Member Data Documentation

PRLock* nsHashtable::mLock [protected]

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