Go to the documentation of this file.
38 for (
const T* ptr : *
this)
55 for (
const T* ptr : *
this)
73 const label len = ptrs.size();
75 for (label i=0; i<len; ++i)
86 const label len = ptrs.size();
88 for (label i=0; i<len; ++i)
103 template<
class... Args>
108 const label len = ptrs.size();
112 for (label i=0; i<len; ++i)
114 const T* ptr = ptrs[i];
118 cloned[i] = ptr->
clone(std::forward<Args>(
args)...).ptr();
label findNull() const
Locate the first null entry, -1 if there are not any.
label count() const
Return the count of non-nullptr entries.
void setNull()
Assign all pointers to nullptr, without deleting.
PtrListDetail< T > clone(Args &&... args) const
Make a copy by cloning each of the list pointers.
void free()
Delete the allocated entries, but retain the list size.
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
autoPtr< List< T * > > clone() const
Clone.
Foam::argList args(argc, argv)