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)
90 template<
class... Args>
95 const label len = ptrs.size();
99 for (label i=0; i<len; ++i)
101 const T* ptr = ptrs[i];
105 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.
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)