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/StringMap.h:158

Templates

ValueTy

Method Overview

  • public static StringMapEntry<ValueTy> * Create(llvm::StringRef Key)
  • public template <typename AllocatorTy, typename... InitTy>static StringMapEntry<ValueTy> * Create(llvm::StringRef Key, AllocatorTy & Allocator, InitTy &&... InitVals)
  • public template <typename... InitType>static StringMapEntry<ValueTy> * Create(llvm::StringRef Key, InitType &&... InitVal)
  • public void Destroy()
  • 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

static StringMapEntry<ValueTy>* Create(
    llvm::StringRef Key)

Declared at: llvm/include/llvm/ADT/StringMap.h:209

Parameters

llvm::StringRef Key

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/StringMap.h:178

Templates

AllocatorTy
InitTy

Parameters

llvm::StringRef Key
AllocatorTy& Allocator
InitTy&&... InitVals

template <typename... InitType>
static StringMapEntry<ValueTy>* Create(
    llvm::StringRef Key,
    InitType&&... InitVal)

Description

Create - Create a StringMapEntry with normal malloc/free.

Declared at: llvm/include/llvm/ADT/StringMap.h:204

Templates

InitType

Parameters

llvm::StringRef Key
InitType&&... InitVal

void Destroy()

Description

Destroy this object, releasing memory back to the malloc allocator.

Declared at: llvm/include/llvm/ADT/StringMap.h:231

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/StringMap.h:223

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/StringMap.h:215

Parameters

const char* KeyData

llvm::StringRef first() const

Declared at: llvm/include/llvm/ADT/StringMap.h:171

llvm::StringRef getKey() const

Declared at: llvm/include/llvm/ADT/StringMap.h:162

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/StringMap.h:169