WPILibC++ 2023.4.3-108-ge5452e3
wpi::StringMapEntryStorage< ValueTy > Class Template Reference

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

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/StringMapEntry.h>

Inheritance diagram for wpi::StringMapEntryStorage< ValueTy >:
wpi::StringMapEntryBase wpi::StringMapEntry< ValueTy >

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 wpi::StringMapEntryBase
 StringMapEntryBase (size_t keyLength)
 
size_t getKeyLength () const
 

Public Attributes

ValueTy second
 

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ StringMapEntryStorage() [1/3]

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

◆ StringMapEntryStorage() [2/3]

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

◆ StringMapEntryStorage() [3/3]

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

Member Function Documentation

◆ getValue() [1/2]

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

◆ getValue() [2/2]

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

◆ setValue()

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

Member Data Documentation

◆ second

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

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