Lines Matching defs:nsHashtable
52 #include "nsHashtable.h"
156 MOZ_DECL_CTOR_COUNTER(nsHashtable)
158 nsHashtable::nsHashtable(PRUint32 aInitSize, PRBool threadSafe)
161 MOZ_COUNT_CTOR(nsHashtable);
183 nsHashtable::~nsHashtable() {
184 MOZ_COUNT_DTOR(nsHashtable);
190 PRBool nsHashtable::Exists(nsHashKey *aKey)
207 void *nsHashtable::Put(nsHashKey *aKey, void *aData)
239 void *nsHashtable::Get(nsHashKey *aKey)
255 void *nsHashtable::Remove(nsHashKey *aKey)
292 nsHashtable *newHashtable = (nsHashtable *)arg;
299 nsHashtable * nsHashtable::Clone()
304 nsHashtable *newHashTable = new nsHashtable(mHashtable.entryCount, threadSafe);
310 void nsHashtable::Enumerate(nsHashtableEnumFunc aEnumFunc, void* aClosure)
336 void nsHashtable::Reset() {
340 void nsHashtable::Reset(nsHashtableEnumFunc destroyFunc, void* aClosure)
357 nsHashtable::nsHashtable(nsIObjectInputStream* aStream,
364 MOZ_COUNT_CTOR(nsHashtable);
432 nsHashtable::Write(nsIObjectOutputStream* aStream,
448 NS_CONST_CAST(nsHashtable*, this)->Enumerate(WriteEntry, (void*) &args);
734 // nsObjectHashtable: an nsHashtable where the elements are C++ objects to be
742 : nsHashtable(aSize, threadSafe),
773 nsHashtable*
793 nsHashtable::Reset(mDestroyElementFun, mDestroyElementClosure);
806 // nsSupportsHashtable: an nsHashtable where the elements are nsISupports*
827 void *prev = nsHashtable::Put(aKey, aData);
839 void* data = nsHashtable::Get(aKey);
852 void* data = nsHashtable::Remove(aKey);
866 nsHashtable *newHashtable = (nsHashtable *)arg;
875 nsHashtable*
892 nsHashtable::Reset();