38 for (
const T* ptr : *
this)
58 for (
const T* ptr : *
this)
76 const label len = ptrs.
size();
78 for (label i=0; i<len; ++i)
89 const label len = ptrs.
size();
91 for (label i=0; i<len; ++i)
106template<
class... Args>
111 const label len = ptrs.
size();
115 for (label i=0; i<len; ++i)
117 const T* ptr = ptrs[i];
121 cloned[i] = ptr->
clone(std::forward<Args>(
args)...).ptr();
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
label findNull() const
Locate the first null entry, -1 if there are none (or empty list)
void setNull()
Assign all pointers to nullptr, without deleting.
void free()
Delete the allocated entries, but retain the list size.
PtrListDetail< T > clone(Args &&... args) const
Make a copy by cloning each of the list pointers.
label count() const
Return the count of non-nullptr entries.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label n)
Older name for setAddressableSize.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Foam::argList args(argc, argv)