10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_HASHTABLE_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_HASHTABLE_H
24 class BinaryStreamReader;
25 class BinaryStreamWriter;
29 class HashTableIterator;
39 using BucketList = std::vector<std::pair<uint32_t, uint32_t>>;
83 std::pair<uint32_t, uint32_t>> {
93 const std::pair<uint32_t, uint32_t> &
operator*()
const;
97 bool isEnd()
const {
return IsEnd; }
98 uint32_t index()
const {
return Index; }
109 #endif // LLVM_DEBUGINFO_PDB_NATIVE_HASHTABLE_H
uint32_t calculateSerializedLength() const
HashTableIterator end() const
HashTableIterator & operator++()
bool isPresent(uint32_t K) const
const std::pair< uint32_t, uint32_t > & operator*() const
Error commit(BinaryStreamWriter &Writer) const
void set(uint32_t K, uint32_t V)
HashTableIterator begin() const
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
bool isDeleted(uint32_t K) const
HashTableIterator find(uint32_t K)
bool operator==(const HashTableIterator &R) const
Provides write only access to a subclass of WritableBinaryStream.
uint32_t capacity() const
HashTableIterator & operator=(const HashTableIterator &R)
Error load(BinaryStreamReader &Stream)
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.