llvm::StringMapEntry< ValueTy > Class Template Reference
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
More...
#include <StringMap.h>
List of all members.
Public Member Functions |
| StringMapEntry (unsigned strLen) |
| StringMapEntry (unsigned strLen, const ValueTy &V) |
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.
|
StringRef | first () const |
template<typename AllocatorTy > |
void | Destroy (AllocatorTy &Allocator) |
| Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
|
void | Destroy () |
| Destroy this object, releasing memory back to the malloc allocator.
|
Static Public Member Functions |
template<typename AllocatorTy , typename InitType > |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator, InitType InitVal) |
| Create - Create a StringMapEntry for the specified key and default construct the value.
|
template<typename AllocatorTy > |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator) |
template<typename InitType > |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, InitType InitVal) |
| Create - Create a StringMapEntry with normal malloc/free.
|
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd) |
static StringMapEntry & | GetStringMapEntryFromValue (ValueTy &V) |
| GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
|
static const StringMapEntry & | GetStringMapEntryFromValue (const ValueTy &V) |
static StringMapEntry & | GetStringMapEntryFromKeyData (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 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.
Constructor & Destructor Documentation
template<typename ValueTy>
template<typename ValueTy>
Member Function Documentation
template<typename ValueTy>
template<typename ValueTy>
template<typename InitType >
template<typename ValueTy>
template<typename AllocatorTy >
template<typename ValueTy>
template<typename AllocatorTy , typename InitType >
Create - Create a StringMapEntry for the specified key and default construct the value.
template<typename ValueTy>
Destroy this object, releasing memory back to the malloc allocator.
template<typename ValueTy>
template<typename AllocatorTy >
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
template<typename ValueTy>
template<typename ValueTy>
template<typename ValueTy>
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>
template<typename ValueTy>
template<typename ValueTy>
template<typename ValueTy>
template<typename ValueTy>
template<typename ValueTy>
Member Data Documentation
template<typename ValueTy>
The documentation for this class was generated from the following file: