|
LLVM
4.0.0
|
A container which contains a string, which it owns, plus a precomputed hash. More...
#include <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.
|
inlineexplicit |
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(), and llvm::StringRef::size().
|
inline |
Definition at line 111 of file CachedHashString.h.
|
inlinenoexcept |
Definition at line 126 of file CachedHashString.h.
References Other.
|
inline |
Definition at line 131 of file CachedHashString.h.
|
inline |
Definition at line 138 of file CachedHashString.h.
Referenced by llvm::DenseMapInfo< CachedHashString >::getHashValue(), and llvm::DenseMapInfo< CachedHashString >::isEqual().
|
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 swap.
|
inline |
Definition at line 137 of file CachedHashString.h.
|
inline |
Definition at line 136 of file CachedHashString.h.
Referenced by llvm::DenseMapInfo< CachedHashString >::isEqual(), operator CachedHashStringRef(), and operator StringRef().
|
friend |
Definition at line 73 of file CachedHashString.h.
|
friend |
Definition at line 145 of file CachedHashString.h.
Referenced by operator=().
1.8.6