WPILibC++  unspecified
llvm::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 llvm::StringMapEntry< ValueTy >:
Collaboration diagram for llvm::StringMapEntry< ValueTy >:

Public Member Functions

 StringMapEntry (unsigned strLen)
 
template<typename... InitTy>
 StringMapEntry (unsigned strLen, InitTy &&...InitVals)
 
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. More...
 
- Public Member Functions inherited from llvm::StringMapEntryBase
 StringMapEntryBase (unsigned Len)
 
unsigned 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. More...
 
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. More...
 

Public Attributes

ValueTy second
 

Detailed Description

template<typename ValueTy>
class llvm::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

template<typename ValueTy>
template<typename... InitTy>
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create ( StringRef  Key,
InitTy &&...  InitVals 
)
inlinestatic

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

template<typename ValueTy>
void llvm::StringMapEntry< ValueTy >::Destroy ( )
inline

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

template<typename ValueTy>
const char* llvm::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.

template<typename ValueTy>
static StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromKeyData ( const char *  KeyData)
inlinestatic

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


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