class StringMapEntry

Declaration

template <typename ValueTy>
class StringMapEntry { /* full declaration omitted */ };

Description

StringMapEntry - This is used to represent one value that is inserted into a StringMap. It contains the Value itself and the key: the string length and data.

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:101

Templates

ValueTy

Method Overview

  • public template <typename AllocatorTy, typename... InitTy>static StringMapEntry<ValueTy> * Create(llvm::StringRef key, AllocatorTy & allocator, InitTy &&... initVals)
  • public template <typename AllocatorTy>void Destroy(AllocatorTy & allocator)
  • public static StringMapEntry<ValueTy> & GetStringMapEntryFromKeyData(const char * keyData)
  • public llvm::StringRef first() const
  • public llvm::StringRef getKey() const
  • public const char * getKeyData() const

Methods

template <typename AllocatorTy,
          typename... InitTy>
static StringMapEntry<ValueTy>* Create(
    llvm::StringRef key,
    AllocatorTy& allocator,
    InitTy&&... initVals)

Description

Create a StringMapEntry for the specified key construct the value using\p InitiVals.

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:123

Templates

AllocatorTy
InitTy

Parameters

llvm::StringRef key
AllocatorTy& allocator
InitTy&&... initVals

template <typename AllocatorTy>
void Destroy(AllocatorTy& allocator)

Description

Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:139

Templates

AllocatorTy

Parameters

AllocatorTy& allocator

static StringMapEntry<ValueTy>&
GetStringMapEntryFromKeyData(const char* keyData)

Description

GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:132

Parameters

const char* keyData

llvm::StringRef first() const

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:116

llvm::StringRef getKey() const

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:105

const char* getKeyData() const

Description

getKeyData - Return the start of the string data that is the key for this value. The string data is always stored immediately after the StringMapEntry object.

Declared at: llvm/include/llvm/ADT/StringMapEntry.h:112