Lines Matching refs:aKey

190 PRBool nsHashtable::Exists(nsHashKey *aKey)
198 PL_DHashTableOperate(&mHashtable, aKey, PL_DHASH_LOOKUP);
207 void *nsHashtable::Put(nsHashKey *aKey, void *aData)
220 PL_DHashTableOperate(&mHashtable, aKey, PL_DHASH_ADD));
229 entry->key = aKey->Clone();
239 void *nsHashtable::Get(nsHashKey *aKey)
247 PL_DHashTableOperate(&mHashtable, aKey, PL_DHASH_LOOKUP));
255 void *nsHashtable::Remove(nsHashKey *aKey)
269 PL_DHashTableOperate(&mHashtable, aKey, PL_DHASH_LOOKUP));
418 WriteEntry(nsHashKey *aKey, void *aData, void* aClosure)
423 nsresult rv = aKey->Write(stream);
490 nsCStringKey::nsCStringKey(const nsCStringKey& aKey)
491 : mStr(aKey.mStr), mStrLen(aKey.mStrLen), mOwnership(aKey.mOwnership)
563 nsCStringKey::Equals(const nsHashKey* aKey) const
565 NS_ASSERTION(aKey->GetKeyType() == CStringKey, "mismatched key types");
566 nsCStringKey* other = (nsCStringKey*)aKey;
617 nsStringKey::nsStringKey(const nsStringKey& aKey)
618 : mStr(aKey.mStr), mStrLen(aKey.mStrLen), mOwnership(aKey.mOwnership)
690 nsStringKey::Equals(const nsHashKey* aKey) const
692 NS_ASSERTION(aKey->GetKeyType() == StringKey, "mismatched key types");
693 nsStringKey* other = (nsStringKey*)aKey;
797 nsObjectHashtable::RemoveAndDelete(nsHashKey *aKey)
799 void *value = Remove(aKey);
801 return (*mDestroyElementFun)(aKey, value, mDestroyElementClosure);
809 nsSupportsHashtable::ReleaseElement(nsHashKey *aKey, void *aData, void* aClosure)
824 nsSupportsHashtable::Put(nsHashKey *aKey, nsISupports* aData, nsISupports **value)
827 void *prev = nsHashtable::Put(aKey, aData);
837 nsSupportsHashtable::Get(nsHashKey *aKey)
839 void* data = nsHashtable::Get(aKey);
850 nsSupportsHashtable::Remove(nsHashKey *aKey, nsISupports **value)
852 void* data = nsHashtable::Remove(aKey);