class StringMapEntryBase
Declaration
class StringMapEntryBase { /* full declaration omitted */ };
Description
StringMapEntryBase - Shared base class of StringMapEntry instances.
Declared at: llvm/include/llvm/ADT/StringMapEntry.h:26
Member Variables
- private size_t keyLength
Method Overview
- public StringMapEntryBase(size_t keyLength)
- protected template <typename AllocatorTy>static void * allocateWithKey(size_t EntrySize, size_t EntryAlign, llvm::StringRef Key, AllocatorTy & Allocator)
- public size_t getKeyLength() const
Methods
¶StringMapEntryBase(size_t keyLength)
StringMapEntryBase(size_t keyLength)
Declared at: llvm/include/llvm/ADT/StringMapEntry.h:30
Parameters
- size_t keyLength
¶template <typename AllocatorTy>
static void* allocateWithKey(
size_t EntrySize,
size_t EntryAlign,
llvm::StringRef Key,
AllocatorTy& Allocator)
template <typename AllocatorTy>
static void* allocateWithKey(
size_t EntrySize,
size_t EntryAlign,
llvm::StringRef Key,
AllocatorTy& Allocator)
Description
Helper to tail-allocate \p Key. It'd be nice to generalize this so it could be reused elsewhere, maybe even taking an llvm::function_ref to type-erase the allocator and put it in a source file.
Declared at: llvm/include/llvm/ADT/StringMapEntry.h:39
Templates
- AllocatorTy
Parameters
- size_t EntrySize
- size_t EntryAlign
- llvm::StringRef Key
- AllocatorTy& Allocator
¶size_t getKeyLength() const
size_t getKeyLength() const
Declared at: llvm/include/llvm/ADT/StringMapEntry.h:32