Go to the documentation of this file.
39 #ifndef HashTableCore_H
40 #define HashTableCore_H
74 "NullObject is too small to reinterpret_cast as HashTable::iterator"
79 template<
class IteratorType,
class TableType>
93 label
size() const noexcept {
return size_; }
94 bool empty() const noexcept {
return !size_; }
96 inline IteratorType
begin()
const;
97 inline IteratorType
cbegin()
const;
99 inline IteratorType
end()
const;
100 inline IteratorType
cend()
const;
const_iterator_pair()
Default construct an empty pair.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
static label canonicalSize(const label requested_size)
Return a canonical (power-of-two) of the requested size.
IteratorType cend() const
Bits that are independent of HashTable template parameters.
HashTableCore()=default
Default construct.
Factory class for creating a begin/end pair for any const iterator.
static const label maxTableSize
Maximum allowable internal table size. Approximately labelMax/4.
Singleton null-object class and instance.
IteratorType cbegin() const
IteratorType begin() const
label size() const noexcept
bool empty() const noexcept
ClassName("HashTable")
Declare type-name (with debug switch)