37#ifndef Foam_HashTableDetail_H
38#define Foam_HashTableDetail_H
68template<
class T>
struct isPointerLike<std::unique_ptr<T>> : std::true_type {};
79template<
class K,
class V>
121 template<
class... Args>
242 template<
class... Args>
CGAL::Exact_predicates_exact_constructions_kernel K
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
static zero dummy
A static instance, when modifiable reference is required by an API.
OBJstream os(runTime.globalPath()/outputName)
Implementation details for various OpenFOAM classes.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Foam::argList args(argc, argv)
Internal storage type for HashTable entries.
V mapped_type
Type of content.
HashTablePair(const HashTablePair &)=delete
No copy construct.
const mapped_type & cval() const noexcept
Const access to the mapped value.
mapped_type & val() noexcept
Non-const access to the mapped value.
const K key_
The lookup key.
const mapped_type & val() const noexcept
Const access to the mapped value.
void operator=(const HashTablePair &)=delete
No copy assignment.
void print(Ostream &os) const
Write (key, val) pair.
const key_type & key() const noexcept
The key.
HashTablePair * next_
Addressing (next in collision list).
static constexpr bool stores_value() noexcept
This class stores a value.
HashTablePair(HashTablePair *next, const key_type &key, Args &&... args)
Construct from next pointer, key, contents.
bool operator<(const HashTablePair &rhs) const
Compare keys.
Internal storage type for HashSet entries.
HashTableSingle(const HashTableSingle &)=delete
No copy construct.
void operator=(const HashTableSingle &)=delete
No copy assignment.
HashTableSingle * next_
Addressing (next in collision list).
const mapped_type & cval() const noexcept
Const access to the (dummy) mapped value (for API only).
key_type value_type
Content storage type to the entry.
mapped_type & val() noexcept
Non-const access to the (dummy) mapped value (for API only).
const K key_
The lookup key == content.
const mapped_type & val() const noexcept
Const access to the (dummy) mapped value (for API only).
HashTableSingle(HashTableSingle *next, const key_type &key, Args &&...)
Construct from next pointer, key, (unused) contents.
void print(Ostream &os) const
Write the key. There is no value to write.
const key_type & key() const noexcept
The key.
static constexpr bool stores_value() noexcept
This class does not store any value.
Foam::zero mapped_type
Type of content (no content: placeholder).
bool operator<(const HashTableSingle &rhs) const
Compare keys.