LLVM  10.0.0svn
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/StringMap.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 strLen)
 
template<typename... InitTy>
 StringMapEntryStorage (size_t strLen, 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 Len)
 
size_t getKeyLength () const
 

Public Attributes

ValueTy second
 

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 127 of file StringMap.h.

Constructor & Destructor Documentation

◆ StringMapEntryStorage() [1/3]

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

Definition at line 131 of file StringMap.h.

◆ StringMapEntryStorage() [2/3]

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

Definition at line 134 of file StringMap.h.

References E.

◆ StringMapEntryStorage() [3/3]

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

Member Function Documentation

◆ getValue() [1/2]

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

◆ getValue() [2/2]

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

Definition at line 139 of file StringMap.h.

References second.

◆ setValue()

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

Definition at line 141 of file StringMap.h.

Referenced by llvm::Value::getName(), and llvm::Value::takeName().

Member Data Documentation

◆ second

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

Definition at line 129 of file StringMap.h.


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