75 if (!dict_type::addHashEntry(
key, ptr))
78 <<
"Cannot insert with key '" <<
key <<
"' into hash-table" 106 return this->
set(i,
key, ptr.
ptr());
PtrListDictionary(const label size)
Construct given initial list size.
patchWriters resize(patchIds.size())
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Template dictionary class which manages the storage associated with it.
A class for handling words, derived from Foam::string.
errorManip< error > abort(error &err)
T * release() noexcept
Release ownership and return the pointer.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
A helper class when constructing from an Istream or dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
T * ptr() const
Return managed pointer for reuse, or clone() the object reference.
A class for managing temporary objects.
autoPtr< T > set(const label i, const word &key, T *ptr)
Set element to pointer provided and return old element.