30 template<
class T,
class Key,
class Hash>
41 template<
class T,
class Key,
class Hash>
52 if (container_ && container_->size_)
57 !(entry_ = container_->table_[index_])
58 && ++index_ < container_->capacity_
62 if (index_ >= container_->capacity_)
75 template<
class T,
class Key,
class Hash>
86 index_ = -(index_+1) - 1;
88 else if (index_ < container_->capacity_ && entry_ && entry_->next_)
91 entry_ = entry_->next_;
98 ++index_ < container_->capacity_
99 && !(entry_ = container_->table_[index_])
103 if (index_ >= container_->capacity_)
112 template<
class T,
class Key,
class Hash>
129 template<
class T,
class Key,
class Hash>
138 template<
class T,
class Key,
class Hash>
150 template<
class T,
class Key,
class Hash>
159 template<
class T,
class Key,
class Hash>
171 template<
class T,
class Key,
class Hash>
179 template<
class T,
class Key,
class Hash>
187 template<
class T,
class Key,
class Hash>
195 template<
class T,
class Key,
class Hash>
203 template<
class T,
class Key,
class Hash>
207 return const_iterator();
211 template<
class T,
class Key,
class Hash>
215 return const_iterator();
void increment()
Increment to the next position.
Forward iterator with const access.
const_iterator & operator++()
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
iterator end() noexcept
iterator to signal the end (for any HashTable)
Forward iterator with non-const access.
friend class Iterator< true >
An iterator with const access to HashTable internals.
iterator begin()
iterator set to the beginning of the HashTable
A HashTable similar to std::unordered_map.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void print(Ostream &os) const
Print stream description to Ostream.
friend class Iterator< false >
An iterator with non-const access to HashTable internals.
const_iterator cbegin() const
const_iterator set to the beginning of the HashTable
constexpr const_iterator cend() const noexcept
const_iterator to signal the end (for any HashTable)