40 List<
T*>(len, static_cast<
T*>(nullptr))
90 return (i >= 0 && i < this->size()) ? (*this)[i] :
nullptr;
97 return (i >= 0 && i < this->size()) ? (*this)[i] :
nullptr;
144 const label idx = this->find_first_not();
149 <<
"Element " << idx <<
" is null" <<
nl 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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
constexpr char nl
The newline '\n' character (0x0a)
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
void checkNonNull() const
FatalError if any null exists in the list.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void operator=(const PtrListDetail< T > &list)
Copy assignment (shallow copies addresses)
void setAddressableSize(const label n) noexcept
Set addressed size to be inconsistent with allocated storage.
void resize(const label newLen)
Reset size of list.
const T * get(const label i) const
Return const pointer to element or nullptr for out-of-range access.
constexpr PtrListDetail() noexcept
Default construct.
void resize_null(const label newLen)
Set the list to the given size and set all entries to nullptr.