LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::StringMapEntryStorage< ValueTy > Class Template Reference

StringMapEntryStorage - Holds the value in a StringMapEntry. More...

#include "llvm/ADT/StringMapEntry.h"

Inheritance diagram for llvm::StringMapEntryStorage< ValueTy >:
Inheritance graph
[legend]
Collaboration diagram for llvm::StringMapEntryStorage< ValueTy >:
Collaboration graph
[legend]

Public Member Functions

 StringMapEntryStorage (size_t keyLength)
 
template<typename... InitTy>
 StringMapEntryStorage (size_t keyLength, InitTy &&... initVals)
 
 StringMapEntryStorage (StringMapEntryStorage &e)=delete
 
const ValueTy & getValue () const
 
ValueTy & getValue ()
 
void setValue (const ValueTy &V)
 
- Public Member Functions inherited from llvm::StringMapEntryBase
 StringMapEntryBase (size_t keyLength)
 
size_t getKeyLength () const
 

Public Attributes

ValueTy second
 

Additional Inherited Members

- Static Protected Member Functions inherited from llvm::StringMapEntryBase
template<typename AllocatorTy >
static void * allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator)
 Helper to tail-allocate Key. More...
 

Detailed Description

template<typename ValueTy>
class llvm::StringMapEntryStorage< ValueTy >

StringMapEntryStorage - Holds the value in a StringMapEntry.

Factored out into a separate base class to make it easier to specialize. This is primarily intended to support StringSet, which doesn't need a value stored at all.

Definition at line 67 of file StringMapEntry.h.

Constructor & Destructor Documentation

◆ StringMapEntryStorage() [1/3]

template<typename ValueTy >
llvm::StringMapEntryStorage< ValueTy >::StringMapEntryStorage ( size_t  keyLength)
inlineexplicit

Definition at line 71 of file StringMapEntry.h.

◆ StringMapEntryStorage() [2/3]

template<typename ValueTy >
template<typename... InitTy>
llvm::StringMapEntryStorage< ValueTy >::StringMapEntryStorage ( size_t  keyLength,
InitTy &&...  initVals 
)
inline

Definition at line 74 of file StringMapEntry.h.

◆ StringMapEntryStorage() [3/3]

template<typename ValueTy >
llvm::StringMapEntryStorage< ValueTy >::StringMapEntryStorage ( StringMapEntryStorage< ValueTy > &  e)
delete

Member Function Documentation

◆ getValue() [1/2]

template<typename ValueTy >
ValueTy& llvm::StringMapEntryStorage< ValueTy >::getValue ( )
inline

Definition at line 80 of file StringMapEntry.h.

◆ getValue() [2/2]

template<typename ValueTy >
const ValueTy& llvm::StringMapEntryStorage< ValueTy >::getValue ( ) const
inline

Definition at line 79 of file StringMapEntry.h.

◆ setValue()

template<typename ValueTy >
void llvm::StringMapEntryStorage< ValueTy >::setValue ( const ValueTy &  V)
inline

Definition at line 82 of file StringMapEntry.h.

Referenced by llvm::Value::takeName().

Member Data Documentation

◆ second

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

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