LLVM 20.0.0git
|
A container which contains a string, which it owns, plus a precomputed hash. More...
#include "llvm/ADT/CachedHashString.h"
Public Member Functions | |
CachedHashString (const char *S) | |
CachedHashString (StringRef S) | |
CachedHashString (StringRef S, uint32_t Hash) | |
CachedHashString (const CachedHashString &Other) | |
CachedHashString & | operator= (CachedHashString Other) |
CachedHashString (CachedHashString &&Other) noexcept | |
~CachedHashString () | |
StringRef | val () const |
uint32_t | size () const |
uint32_t | hash () const |
operator StringRef () const | |
operator CachedHashStringRef () const | |
Friends | |
struct | DenseMapInfo< CachedHashString > |
void | swap (CachedHashString &LHS, CachedHashString &RHS) |
A container which contains a string, which it owns, plus a precomputed hash.
We do not null-terminate the string.
Definition at line 72 of file CachedHashString.h.
Definition at line 98 of file CachedHashString.h.
|
inlineexplicit |
Definition at line 101 of file CachedHashString.h.
Definition at line 104 of file CachedHashString.h.
References llvm::StringRef::data(), P, and llvm::StringRef::size().
|
inline |
Definition at line 111 of file CachedHashString.h.
References llvm::Other, and P.
|
inlinenoexcept |
Definition at line 126 of file CachedHashString.h.
References llvm::Other, and P.
|
inline |
Definition at line 131 of file CachedHashString.h.
References P.
|
inline |
Definition at line 138 of file CachedHashString.h.
Referenced by llvm::DenseMapInfo< CachedHashString >::getHashValue().
|
inline |
Definition at line 141 of file CachedHashString.h.
References val().
|
inline |
Definition at line 140 of file CachedHashString.h.
References val().
|
inline |
Definition at line 121 of file CachedHashString.h.
References llvm::Other, and swap.
|
inline |
Definition at line 137 of file CachedHashString.h.
|
inline |
Definition at line 136 of file CachedHashString.h.
References P.
Referenced by operator CachedHashStringRef(), and operator StringRef().
|
friend |
Definition at line 62 of file CachedHashString.h.
|
friend |
Definition at line 145 of file CachedHashString.h.
Referenced by operator=().