class ScopedHashTable

Declaration

template <typename K,
          typename V,
          typename KInfo = DenseMapInfo<K>,
          typename AllocatorTy = llvm::MallocAllocator>
class ScopedHashTable { /* full declaration omitted */ };

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:150

Templates

K
V
KInfo = DenseMapInfo<K>
AllocatorTy = llvm::MallocAllocator

Method Overview

Methods

ScopedHashTable<K, V, KInfo, AllocatorTy>()

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:168

ScopedHashTable<K, V, KInfo, AllocatorTy>(
    AllocatorTy A)

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:169

Parameters

AllocatorTy A

ScopedHashTable<K, V, KInfo, AllocatorTy>(
    const ScopedHashTable<K,
                          V,
                          KInfo,
                          AllocatorTy>&)

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:170

Parameters

const ScopedHashTable<K, V, KInfo, AllocatorTy>&

llvm::ScopedHashTable::iterator begin(
    const K& Key)

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:202

Parameters

const K& Key

llvm::ScopedHashTable::size_type count(
    const K& Key) const

Description

Return 1 if the specified key is in the table, 0 otherwise.

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:182

Parameters

const K& Key

llvm::ScopedHashTable::iterator end()

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:200

AllocatorTy& getAllocator()

Description

Access to the allocator.

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:178

const AllocatorTy& getAllocator() const

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:179

llvm::ScopedHashTable::ScopeTy* getCurScope()

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:209

const llvm::ScopedHashTable::ScopeTy*
getCurScope() const

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:210

void insert(const K& Key, const V& Val)

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:194

Parameters

const K& Key
const V& Val

void insertIntoScope(
    llvm::ScopedHashTable::ScopeTy* S,
    const K& Key,
    const V& Val)

Description

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.

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:216

Parameters

llvm::ScopedHashTable::ScopeTy* S
const K& Key
const V& Val

V lookup(const K& Key) const

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:186

Parameters

const K& Key

~ScopedHashTable<K, V, KInfo, AllocatorTy>()

Declared at: llvm/include/llvm/ADT/ScopedHashTable.h:173