Go to the documentation of this file.
37 #ifndef HashTableDetail_H
38 #define HashTableDetail_H
43 #include <type_traits>
52 template<
class T>
class autoPtr;
68 template<
class T>
struct isPointerLike<std::unique_ptr<T>> : std::true_type {};
79 template<
class K,
class V>
119 template<
class... Args>
152 template<
class TypeT = V>
153 typename std::enable_if
156 std::is_pointer<TypeT>::value
172 template<
class TypeT = V>
173 typename std::enable_if
176 !std::is_pointer<TypeT>::value
234 template<
class... Args>
HashTableSingle(const HashTableSingle &)=delete
No copy construct.
void operator=(const HashTablePair &)=delete
No copy assignment.
key_type value_type
Content storage type to the entry.
mapped_type & val()
Non-const access to the (dummy) mapped value.
Internal storage type for HashSet entries.
HashTableSingle * next_
Addressing (next in collision list)
std::enable_if<(!std::is_pointer< TypeT >::value &&!Detail::isPointerLike< TypeT >::value), void >::type print(Ostream &os) const
Write (key, val) pair - for non-pointer types.
key_type key_
The lookup key == content.
HashTablePair * next_
Addressing (next in collision list)
CGAL::Exact_predicates_exact_constructions_kernel K
static constexpr bool stores_value() noexcept
This struct does not store a value.
const key_type & key() const
The key.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
mapped_type & val()
Non-const access to the mapped value.
mapped_type val_
The mapped data.
const mapped_type & cval() const
Const access to the (dummy) mapped value.
OBJstream os(runTime.globalPath()/outputName)
V mapped_type
Type of content.
A zero class with a null output adapter.
HashTablePair(const HashTablePair &)=delete
No copy construct.
const mapped_type & cval() const
Const access to the mapped value.
Internal storage type for HashTable entries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
key_type key_
The lookup key.
Foam::zero::null mapped_type
Type of content.
static constexpr bool stores_value() noexcept
This struct stores a value.
const key_type & key() const
The key.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void print(Ostream &os) const
Write the key. There is no value.
static null dummy
A static zero::null for dereferencing as a dummy element.
void operator=(const HashTableSingle &)=delete
No copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Foam::argList args(argc, argv)
std::enable_if<(std::is_pointer< TypeT >::value||Detail::isPointerLike< TypeT >::value), void >::type print(Ostream &os) const
Write (key, val) pair - for pointer types.