45#ifndef Foam_PtrListDetail_H
46#define Foam_PtrListDetail_H
93 inline const T*
get(
const label i)
const;
96 inline T*
get(
const label i);
136 template<
class... Args>
141 inline void resize(
const label newLen);
173 void setSize(
const label) =
delete;
174 void setSize(
const label,
const T&) =
delete;
175 void setSize(
const label,
const T*) =
delete;
void setSize(const label)=delete
label find_next_not(label pos) const
Locate the next null entry, starting one beyond the specified position.
void setSize(const label, const T *)=delete
void operator=(const PtrListDetail< T > &list)
Copy assignment (shallow copies addresses).
label find_first_not() const
Locate the first entry that is null, -1 if there are none (or empty list).
void resize_nocopy(const label)=delete
const T * get(const label i) const
Return const pointer to element or nullptr for out-of-range access.
Ostream & printAddresses(Ostream &os, label maxLen=-1) const
Write pointer values to Ostream (debugging only).
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.
void resize_null(const label newLen)
Set the list to the given size and set all entries to nullptr.
void setSize(const label, const T &)=delete
PtrListDetail< T > clone(Args &&... args) const
Make a copy by cloning each of the list pointers.
void checkNonNull() const
FatalError if any null exists in the list.
constexpr PtrListDetail() noexcept
Default construct.
label find_next(label pos) const
Locate the next non-null entry, starting one beyond the specified position.
void setAddressableSize(const label n) noexcept
Set addressed size to be inconsistent with allocated storage.
void resize(const label newLen)
Reset size of list.
label find_first() const
Locate the first entry that is non-null.
autoPtr< List< T > > clone() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
UList(const UList< T > &) noexcept=default
Copy construct, shallow copy.
OBJstream os(runTime.globalPath()/outputName)
Implementation details for various OpenFOAM classes.
dimensionedScalar pos(const dimensionedScalar &ds)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Foam::argList args(argc, argv)