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 Types
using ValueType = ValueTy
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.
Public Member Functions inherited from llvm::StringMapEntryStorage< ValueTy >
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)
Public Member Functions inherited from llvm::StringMapEntryBase
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
Public Attributes inherited from llvm::StringMapEntryStorage< ValueTy >
ValueTy second
Static Protected Member Functions inherited from llvm::StringMapEntryBase
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 104 of file StringMapEntry.h.

ValueType

template

create()

template

template<typename AllocatorTy, typename... InitTy>

Destroy()

template

template

first()

template

getKey()

template

Definition at line 110 of file StringMapEntry.h.

Referenced by llvm::dwarf_linker::parallel::SyntheticTypeNameBuilder::addDIETypeName(), llvm::StringMap< EmptyStringSetTag, AllocatorTy >::count(), llvm::StringMapEntry< EmptyStringSetTag >::first(), llvm::dwarf_linker::parallel::TypeEntryInfo::getKey(), llvm::dwarf_linker::StringPoolEntryInfo::getKey(), llvm::getKnowledgeFromBundle(), llvm::StringMap< EmptyStringSetTag, AllocatorTy >::insert(), llvm::StringSet< AllocatorTy >::insert(), 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: