Lines Matching refs:aKey

81   PRBool KeyEquals(const KeyTypePointer aKey) const
83 return mStr.Equals(*aKey);
86 static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; }
87 static PLDHashNumber HashKey(const KeyTypePointer aKey)
89 return HashString(*aKey);
115 PRBool KeyEquals(KeyTypePointer aKey) const { return mStr.Equals(*aKey); }
117 static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; }
118 static PLDHashNumber HashKey(KeyTypePointer aKey)
120 return HashString(*aKey);
139 nsUint32HashKey(KeyTypePointer aKey) : mValue(*aKey) { }
145 PRBool KeyEquals(KeyTypePointer aKey) const { return *aKey == mValue; }
147 static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; }
148 static PLDHashNumber HashKey(KeyTypePointer aKey) { return *aKey; }
175 PRBool KeyEquals(KeyTypePointer aKey) const { return aKey == mSupports; }
177 static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; }
178 static PLDHashNumber HashKey(KeyTypePointer aKey)
180 return NS_PTR_TO_INT32(aKey) >>2;
208 PRBool KeyEquals(KeyTypePointer aKey) const { return aKey == mKey; }
210 static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; }
211 static PLDHashNumber HashKey(KeyTypePointer aKey)
213 return NS_PTR_TO_INT32(aKey) >>2;
239 PRBool KeyEquals(KeyTypePointer aKey) const { return aKey->Equals(mID); }
241 static KeyTypePointer KeyToPointer(KeyType aKey) { return &aKey; }
242 static PLDHashNumber HashKey(KeyTypePointer aKey);
265 nsDepCharHashKey(const char* aKey) { mKey = aKey; }
271 PRBool KeyEquals(const char* aKey) const
273 return !strcmp(mKey, aKey);
276 static const char* KeyToPointer(const char* aKey) { return aKey; }
277 static PLDHashNumber HashKey(const char* aKey) { return nsCRT::HashCode(aKey); }
295 nsCharPtrHashKey(const char* aKey) : mKey(strdup(aKey)) { }
301 PRBool KeyEquals(KeyTypePointer aKey) const
303 return !strcmp(mKey, aKey);
306 static KeyTypePointer KeyToPointer(KeyType aKey) { return aKey; }
307 static PLDHashNumber HashKey(KeyTypePointer aKey) { return nsCRT::HashCode(aKey); }