Lines Matching defs:Key
79 unsigned LookupBucketFor(StringRef Key);
84 int FindKey(StringRef Key) const;
92 StringMapEntryBase *RemoveKey(StringRef Key);
291 iterator find(StringRef Key) {
292 int Bucket = FindKey(Key);
297 const_iterator find(StringRef Key) const {
298 int Bucket = FindKey(Key);
305 ValueTy lookup(StringRef Key) const {
306 const_iterator it = find(Key);
312 ValueTy &operator[](StringRef Key) {
313 return GetOrCreateValue(Key).getValue();
316 size_type count(StringRef Key) const {
317 return find(Key) == end() ? 0 : 1;
361 MapEntryTy &GetOrCreateValue(StringRef Key, InitTy Val) {
362 unsigned BucketNo = LookupBucketFor(Key);
368 MapEntryTy::Create(Key.begin(), Key.end(), Allocator, Val);
383 MapEntryTy &GetOrCreateValue(StringRef Key) {
384 return GetOrCreateValue(Key, ValueTy());
399 bool erase(StringRef Key) {
400 iterator I = find(Key);