LLVM
8.0.1
|
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 73 of file CachedHashString.h.
Definition at line 99 of file CachedHashString.h.
|
inlineexplicit |
Definition at line 102 of file CachedHashString.h.
Definition at line 105 of file CachedHashString.h.
References llvm::StringRef::data(), llvm::Intrinsic::memcpy, and llvm::StringRef::size().
|
inline |
Definition at line 112 of file CachedHashString.h.
References llvm::Intrinsic::memcpy.
|
inlinenoexcept |
Definition at line 127 of file CachedHashString.h.
References Other.
|
inline |
Definition at line 132 of file CachedHashString.h.
|
inline |
Definition at line 139 of file CachedHashString.h.
Referenced by llvm::DenseMapInfo< CachedHashString >::getHashValue(), and llvm::DenseMapInfo< CachedHashString >::isEqual().
|
inline |
Definition at line 142 of file CachedHashString.h.
References llvm::CachedHashStringRef::CachedHashStringRef(), and llvm::CachedHashStringRef::val().
|
inline |
Definition at line 141 of file CachedHashString.h.
References llvm::CachedHashStringRef::val().
|
inline |
Definition at line 122 of file CachedHashString.h.
References std::swap().
|
inline |
Definition at line 138 of file CachedHashString.h.
|
inline |
Definition at line 137 of file CachedHashString.h.
Referenced by llvm::DenseMapInfo< CachedHashString >::isEqual().
|
friend |
Definition at line 74 of file CachedHashString.h.
|
friend |
Definition at line 146 of file CachedHashString.h.