LLVM: llvm::StringMapEntry< ValueTy > Class Template Reference (original) (raw)
StringMapEntry - This is used to represent one value that is inserted into a [StringMap](classllvm%5F1%5F1StringMap.html "StringMap - This is an unconventional map that is specialized for handling keys that are "strings",..."). More...
#include "[llvm/ADT/StringMapEntry.h](ADT%5F2StringMapEntry%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
StringRef | getKey () const |
const char * | getKeyData () const |
getKeyData - Return the start of the string data that is the key for this value. | |
StringRef | first () const |
template | |
void | Destroy (AllocatorTy &allocator) |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator. | |
![]() |
|
StringMapEntryStorage (size_t keyLength) | |
template<typename... InitTy> | |
StringMapEntryStorage (size_t keyLength, InitTy &&...initVals) | |
StringMapEntryStorage (StringMapEntryStorage &e)=delete | |
const ValueTy & | getValue () const |
ValueTy & | getValue () |
void | setValue (const ValueTy &V) |
![]() |
|
StringMapEntryBase (size_t keyLength) | |
size_t | getKeyLength () const |
Static Public Member Functions | |
---|---|
template<typename AllocatorTy , typename... InitTy> | |
static StringMapEntry * | create (StringRef key, AllocatorTy &allocator, InitTy &&...initVals) |
Create a StringMapEntry for the specified key construct the value using InitiVals. | |
static StringMapEntry & | GetStringMapEntryFromKeyData (const char *keyData) |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself. | |
Additional Inherited Members | |
---|---|
![]() |
|
ValueTy | second |
![]() |
|
template | |
static void * | allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator) |
Helper to tail-allocate Key. | |
template
class llvm::StringMapEntry< ValueTy >
StringMapEntry - This is used to represent one value that is inserted into a [StringMap](classllvm%5F1%5F1StringMap.html "StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...").
It contains the Value itself and the key: the string length and data.
Definition at line 102 of file StringMapEntry.h.
◆ ValueType
template
◆ create()
template
template<typename AllocatorTy , typename... InitTy>
◆ Destroy()
template
template
◆ first()
template
◆ getKey()
template
Definition at line 108 of file StringMapEntry.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
Referenced by llvm::dwarf_linker::parallel::SyntheticTypeNameBuilder::addDIETypeName(), llvm::StringMap< ValueTy, AllocatorTy >::count(), llvm::StringMapEntry< ValueTy >::first(), llvm::dwarf_linker::StringPoolEntryInfo::getKey(), llvm::dwarf_linker::parallel::TypeEntryInfo::getKey(), llvm::getKnowledgeFromBundle(), llvm::OperandBundleUse::getTagName(), llvm::StringSet< AllocatorTy >::insert(), llvm::StringMap< ValueTy, AllocatorTy >::insert(), LLVMOrcSymbolStringPoolEntryStr(), llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::save(), and llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::saveObjC().
◆ getKeyData()
template
◆ GetStringMapEntryFromKeyData()
template
The documentation for this class was generated from the following file:
- include/llvm/ADT/StringMapEntry.h