Home | History | Annotate | Download | only in ADT

Lines Matching defs:StringMapEntry

38 /// StringMapEntryBase - Shared base class of StringMapEntry instances.
89 /// RemoveKey - Remove the specified StringMapEntry from the table, but do not
93 /// RemoveKey - Remove the StringMapEntry for the specified key from the
122 /// StringMapEntry - This is used to represent one value that is inserted into
126 class StringMapEntry : public StringMapEntryBase {
130 explicit StringMapEntry(unsigned strLen)
133 StringMapEntry(unsigned strLen, InitTy &&... InitVals)
135 StringMapEntry(StringMapEntry &E) = delete;
148 /// StringMapEntry object.
153 /// Create a StringMapEntry for the specified key construct the value using
156 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator,
162 unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
164 unsigned Alignment = alignof(StringMapEntry);
166 StringMapEntry *NewItem =
167 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
173 new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
183 /// Create - Create a StringMapEntry with normal malloc/free.
185 static StringMapEntry *Create(StringRef Key, InitType &&... InitVal) {
190 static StringMapEntry *Create(StringRef Key) {
195 /// into a StringMapEntry, return the StringMapEntry itself.
196 static StringMapEntry &GetStringMapEntryFromKeyData(const char *KeyData) {
197 char *Ptr = const_cast<char*>(KeyData) - sizeof(StringMapEntry<ValueTy>);
198 return *reinterpret_cast<StringMapEntry*>(Ptr);
201 /// Destroy - Destroy this StringMapEntry, releasing memory back to the
207 static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
208 this->~StringMapEntry();
228 using MapEntryTy = StringMapEntry<ValueTy>;
313 using value_type = StringMapEntry<ValueTy>;
499 const StringMapEntry<ValueTy>> {
501 const StringMapEntry<ValueTy>>;
509 const StringMapEntry<ValueTy> &operator*() const {
510 return *static_cast<const StringMapEntry<ValueTy> *>(*this->Ptr);
516 StringMapEntry<ValueTy>> {
518 StringMapIterBase<StringMapIterator<ValueTy>, StringMapEntry<ValueTy>>;
526 StringMapEntry<ValueTy> &operator*() const {
527 return *static_cast<StringMapEntry<ValueTy> *>(*this->Ptr);