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 >:
llvm::StringMapEntryBase

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 StringMapEntryCreate (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 StringMapEntryCreate (const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator)
template<typename InitType >
static StringMapEntryCreate (const char *KeyStart, const char *KeyEnd, InitType InitVal)
 Create - Create a StringMapEntry with normal malloc/free.
static StringMapEntryCreate (const char *KeyStart, const char *KeyEnd)
static StringMapEntryGetStringMapEntryFromValue (ValueTy &V)
 GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
static const StringMapEntryGetStringMapEntryFromValue (const ValueTy &V)
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 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>
llvm::StringMapEntry< ValueTy >::StringMapEntry ( unsigned  strLen  )  [inline, explicit]
template<typename ValueTy>
llvm::StringMapEntry< ValueTy >::StringMapEntry ( unsigned  strLen,
const ValueTy &  V 
) [inline]

Member Function Documentation

template<typename ValueTy>
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create ( const char *  KeyStart,
const char *  KeyEnd 
) [inline, static]
template<typename ValueTy>
template<typename InitType >
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create ( const char *  KeyStart,
const char *  KeyEnd,
InitType  InitVal 
) [inline, static]

Create - Create a StringMapEntry with normal malloc/free.

template<typename ValueTy>
template<typename AllocatorTy >
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create ( const char *  KeyStart,
const char *  KeyEnd,
AllocatorTy &  Allocator 
) [inline, static]
template<typename ValueTy>
template<typename AllocatorTy , typename InitType >
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create ( const char *  KeyStart,
const char *  KeyEnd,
AllocatorTy &  Allocator,
InitType  InitVal 
) [inline, static]

Create - Create a StringMapEntry for the specified key and default construct the value.

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

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

template<typename ValueTy>
template<typename AllocatorTy >
void llvm::StringMapEntry< ValueTy >::Destroy ( AllocatorTy &  Allocator  )  [inline]

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

template<typename ValueTy>
StringRef llvm::StringMapEntry< ValueTy >::first (  )  const [inline]
template<typename ValueTy>
StringRef llvm::StringMapEntry< ValueTy >::getKey (  )  const [inline]
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  )  [inline, static]

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

template<typename ValueTy>
static const StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue ( const ValueTy &  V  )  [inline, static]
template<typename ValueTy>
static StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue ( ValueTy &  V  )  [inline, static]

GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.

template<typename ValueTy>
ValueTy& llvm::StringMapEntry< ValueTy >::getValue (  )  [inline]
template<typename ValueTy>
const ValueTy& llvm::StringMapEntry< ValueTy >::getValue (  )  const [inline]
template<typename ValueTy>
void llvm::StringMapEntry< ValueTy >::setValue ( const ValueTy &  V  )  [inline]

Member Data Documentation

template<typename ValueTy>
ValueTy llvm::StringMapEntry< ValueTy >::second

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

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1