WPILibC++  2020.3.2-60-g3011ebe
wpi::StringMapEntry< ValueTy > Class Template Reference

StringMapEntry - This is used to represent one value that is inserted into a StringMap. More...

#include <StringMap.h>

Inheritance diagram for wpi::StringMapEntry< ValueTy >:
wpi::StringMapEntryBase

Public Member Functions

 StringMapEntry (size_t strLen)
 
template<typename... InitTy>
 StringMapEntry (size_t strLen, InitTy &&... InitVals)
 
 StringMapEntry (StringMapEntry &E)=delete
 
StringRef getKey () const
 
const ValueTy & getValue () const
 
ValueTy & getValue ()
 
void setValue (const ValueTy &V)
 
const char * getKeyData () const
 getKeyData - Return the start of the string data that is the key for this value. More...
 
StringRef first () const
 
void Destroy ()
 Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
 
- Public Member Functions inherited from wpi::StringMapEntryBase
 StringMapEntryBase (size_t Len)
 
size_t getKeyLength () const
 

Static Public Member Functions

template<typename... InitTy>
static StringMapEntryCreate (StringRef Key, InitTy &&... InitVals)
 Create a StringMapEntry for the specified key construct the value using InitiVals.
 
static StringMapEntryCreate (StringRef Key)
 
static StringMapEntryGetStringMapEntryFromKeyData (const char *KeyData)
 GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
 

Public Attributes

ValueTy second
 

Detailed Description

template<typename ValueTy>
class wpi::StringMapEntry< ValueTy >

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.

Member Function Documentation

◆ getKeyData()

template<typename ValueTy>
const char* wpi::StringMapEntry< ValueTy >::getKeyData ( ) const
inline

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.


The documentation for this class was generated from the following file: