30template<
class T,
class Key,
class Hash>
41template<
class T,
class Key,
class Hash>
57 !(entry_ = container_->table_[index_])
58 && ++index_ < container_->capacity_
76template<
class T,
class Key,
class Hash>
89 else if (index_ < container_->capacity_ &&
entry_ &&
entry_->next_)
99 ++index_ < container_->capacity_
113template<
class T,
class Key,
class Hash>
130template<
class T,
class Key,
class Hash>
139template<
class T,
class Key,
class Hash>
151template<
class T,
class Key,
class Hash>
160template<
class T,
class Key,
class Hash>
172template<
class T,
class Key,
class Hash>
180template<
class T,
class Key,
class Hash>
188template<
class T,
class Key,
class Hash>
196template<
class T,
class Key,
class Hash>
204template<
class T,
class Key,
class Hash>
212template<
class T,
class Key,
class Hash>
Internally used base for iterator and const_iterator.
Ostream & print(Ostream &os) const
Write the (key, val) pair.
node_type * entry_
The selected entry.
constexpr Iterator() noexcept
Default construct. Also the same as the end iterator.
std::conditional_t< Const, const this_type, this_type > table_type
The HashTable container type.
label index_
Index within the hash-table data.
table_type * container_
The hash-table container being iterated on.
void increment()
Increment to the next position.
Forward iterator with const access.
const_iterator & operator++()
const_iterator()=default
Default construct (end iterator).
Forward iterator with non-const access.
iterator()=default
Default construct (end iterator).
iterator begin()
iterator set to the beginning of the HashTable
const_iterator cbegin() const
const_iterator set to the beginning of the HashTable
iterator end() noexcept
iterator to signal the end (for any HashTable)
constexpr const_iterator cend() const noexcept
const_iterator to signal the end (for any HashTable)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
OBJstream os(runTime.globalPath()/outputName)