Go to the documentation of this file.
41 #ifndef PtrListDetail_H
42 #define PtrListDetail_H
98 template<
class... Args>
label findNull() const
Locate the first null entry, -1 if there are not any.
label count() const
Return the count of non-nullptr entries.
constexpr PtrListDetail() noexcept
Construct null.
void setAddressableSize(const label n)
Override size to be inconsistent with allocated storage.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void free()
Delete the allocated entries, but retain the list size.
void operator=(const PtrListDetail< T > &list)
Copy assignment (shallow copies addresses)
Ostream & write(Ostream &os, const bool trimNull=false) const
Write output, optionally silently trimming nullptrs.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label newLen)
Reset size of list.
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< List< T * > > clone() const
Clone.
Foam::argList args(argc, argv)
void setSize(const label)=delete