37 for (
const T* ptr : *
this)
66 const label len = this->size();
84 const label len = this->size();
105 for (
auto i = this->size()-1; i >= 0; --i)
114template<
class... Args>
118 const List<T*>& ptrs = *
this;
119 const label len = ptrs.
size();
123 for (label i = 0; i < len; ++i)
125 const T* ptr = ptrs[i];
129 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 find_next_not(label pos) const
Locate the next null entry, starting one beyond the specified position.
label find_first_not() const
Locate the first entry that is null, -1 if there are none (or empty list).
void free()
Delete allocated entries and reassign to nullptr. Does not affect the list size.
label count_nonnull() const noexcept
The number of non-nullptr entries in the list.
constexpr PtrListDetail() noexcept
label find_next(label pos) const
Locate the next non-null entry, starting one beyond the specified position.
label find_first() const
Locate the first entry that is non-null.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
autoPtr< List< T > > clone() const
void size(const label n)
Older name for setAddressableSize.
dimensionedScalar pos(const dimensionedScalar &ds)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Foam::argList args(argc, argv)