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.

Synopsis

Declared in <llvm/ADT/StringMapEntry.h>

template<typename ValueTy>
class StringMapEntry final
    : public StringMapEntryStorage<ValueTy>

Base Classes

Name

Description

StringMapEntryStorage<ValueTy>

StringMapEntryStorage ‐ Holds the value in a StringMapEntry.

Type Aliases

Name

Description

ValueType

Type of the mapped value stored in this entry.

Member Functions

Name

Description

Destroy

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

first

Alias for getKey(), enabling structured‐binding‐like access as first.

getKey

Return the key string as a StringRef.

getKeyData

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.

getKeyLength

Return the length of the key string stored after this entry.

getValue

getValue overloads

setValue

Replace the mapped value with V.

Static Member Functions

Name

Description

GetStringMapEntryFromKeyData

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

create

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

Data Members

Name

Description

second

Mapped value associated with the entry's key.

Using Declarations

Name

Description

Unnamed using

Inherit constructors from the storage base class.

Protected Static Member Functions

Name

Description

allocateWithKey

Allocate an entry followed by a copy of Key.

Non-Member Functions

Name

Description

get

Structured‐binding accessor for element Index of const entry E.

get

Structured‐binding accessor for element Index of mutable entry E.

Created with MrDocs