30template<
class T,
class Key,
class Hash>
41template<
class T,
class Key,
class Hash>
58 && ++index_ < container_->capacity_
75template<
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_)
112template<
class T,
class Key,
class Hash>
121template<
class T,
class Key,
class Hash>
130template<
class T,
class Key,
class Hash>
134 return entry_->key();
138template<
class T,
class Key,
class Hash>
153template<
class T,
class Key,
class Hash>
162template<
class T,
class Key,
class Hash>
170 return entry_ == iter.entry_;
174template<
class T,
class Key,
class Hash>
182 return entry_ != iter.entry_;
188template<
class T,
class Key,
class Hash>
197template<
class T,
class Key,
class Hash>
209template<
class T,
class Key,
class Hash>
218template<
class T,
class Key,
class Hash>
230template<
class T,
class Key,
class Hash>
238template<
class T,
class Key,
class Hash>
246template<
class T,
class Key,
class Hash>
254template<
class T,
class Key,
class Hash>
262template<
class T,
class Key,
class Hash>
270template<
class T,
class Key,
class Hash>
void increment()
Move iterator forward.
Internally used base for iterator and const_iterator.
node_type * entry_
The selected entry.
label index_
Index within the hash-table data.
const Key & key() const
The key associated with the iterator.
table_type * container_
The hash-table container being iterated on.
typename std::conditional< Const, const this_type, this_type >::type table_type
The HashTable container type.
Forward iterator with const access.
const_iterator & operator++()
Forward iterator with non-const access.
A HashTable similar to std::unordered_map.
iterator begin()
iterator set to the beginning of the HashTable
const_iterator cbegin() const
const_iterator set to the beginning of the HashTable
friend Ostream & operator(Ostream &, const HashTable< T, Key, Hash > &tbl)
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,...
scalar print()
Print to screen.
OBJstream os(runTime.globalPath()/outputName)