LLVM 20.0.0git
|
#include "llvm/ADT/ScopedHashTable.h"
Public Types | |
using | ScopeTy = ScopedHashTableScope< K, V, KInfo, AllocatorTy > |
ScopeTy - This is a helpful typedef that allows clients to get easy access to the name of the scope for this hash table. | |
using | size_type = unsigned |
using | iterator = ScopedHashTableIterator< K, V, KInfo > |
Public Member Functions | |
ScopedHashTable ()=default | |
ScopedHashTable (AllocatorTy A) | |
ScopedHashTable (const ScopedHashTable &)=delete | |
ScopedHashTable & | operator= (const ScopedHashTable &)=delete |
~ScopedHashTable () | |
size_type | count (const K &Key) const |
Return 1 if the specified key is in the table, 0 otherwise. | |
V | lookup (const K &Key) const |
void | insert (const K &Key, const V &Val) |
iterator | end () |
iterator | begin (const K &Key) |
ScopeTy * | getCurScope () |
const ScopeTy * | getCurScope () const |
void | insertIntoScope (ScopeTy *S, const K &Key, const V &Val) |
insertIntoScope - This inserts the specified key/value at the specified (possibly not the current) scope. | |
Friends | |
class | ScopedHashTableScope< K, V, KInfo, AllocatorTy > |
Definition at line 150 of file ScopedHashTable.h.
using llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::iterator = ScopedHashTableIterator<K, V, KInfo> |
Definition at line 197 of file ScopedHashTable.h.
using llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::ScopeTy = ScopedHashTableScope<K, V, KInfo, AllocatorTy> |
ScopeTy - This is a helpful typedef that allows clients to get easy access to the name of the scope for this hash table.
Definition at line 156 of file ScopedHashTable.h.
using llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::size_type = unsigned |
Definition at line 157 of file ScopedHashTable.h.
|
default |
|
inline |
Definition at line 169 of file ScopedHashTable.h.
|
delete |
|
inline |
Definition at line 173 of file ScopedHashTable.h.
References assert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty().
|
inline |
|
inline |
Return 1 if the specified key is in the table, 0 otherwise.
Definition at line 181 of file ScopedHashTable.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::count().
|
inline |
Definition at line 199 of file ScopedHashTable.h.
Referenced by llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::begin().
|
inline |
Definition at line 208 of file ScopedHashTable.h.
|
inline |
Definition at line 209 of file ScopedHashTable.h.
|
inline |
Definition at line 193 of file ScopedHashTable.h.
References llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::insertIntoScope().
Referenced by loadCSE().
|
inline |
insertIntoScope - This inserts the specified key/value at the specified (possibly not the current) scope.
While it is ok to insert into a scope that isn't the current one, it isn't ok to insert underneath an existing value of the specified key.
Definition at line 215 of file ScopedHashTable.h.
References assert(), llvm::ScopedHashTableVal< K, V >::Create(), and llvm::detail::AllocatorHolder< AllocatorTy >::getAllocator().
Referenced by llvm::ScopedHashTable< K, V, KInfo, AllocatorTy >::insert().
|
inline |
Definition at line 185 of file ScopedHashTable.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by loadCSE().
|
delete |
|
friend |
Definition at line 144 of file ScopedHashTable.h.