WPILibC++ 2024.3.2
wpi::StringMapEntryBase Class Reference

StringMapEntryBase - Shared base class of StringMapEntry instances. More...

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

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

Public Member Functions

 StringMapEntryBase (size_t keyLength)
 
size_t getKeyLength () const
 

Static Protected Member Functions

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

StringMapEntryBase - Shared base class of StringMapEntry instances.

Constructor & Destructor Documentation

◆ StringMapEntryBase()

wpi::StringMapEntryBase::StringMapEntryBase ( size_t  keyLength)
inlineexplicit

Member Function Documentation

◆ allocateWithKey()

template<typename AllocatorTy >
void * wpi::StringMapEntryBase::allocateWithKey ( size_t  EntrySize,
size_t  EntryAlign,
std::string_view  Key,
AllocatorTy &  Allocator 
)
staticprotected

Helper to tail-allocate Key.

It'd be nice to generalize this so it could be reused elsewhere, maybe even taking an wpi::function_ref to type-erase the allocator and put it in a source file.

◆ getKeyLength()

size_t wpi::StringMapEntryBase::getKeyLength ( ) const
inline

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