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);
140 template<
class... Args>
145 inline void resize(
const label newLen);
167 void setSize(
const label) =
delete;
168 void setSize(
const label,
const T&) =
delete;
169 void setSize(
const label,
const T*) =
delete;
void resize_nocopy(const label)=delete
Ostream & write(Ostream &os, const bool trimNull=false) const
Write output, optionally silently trimming nullptrs.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label find_first_not() const
Locate the first entry that is null, -1 if there are none (or empty list)
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
void setSize(const label)=delete
void checkNonNull() const
FatalError if any null exists in the list.
void setNull()
Reassign all pointers to nullptr, without deleting. Does not affect the list size.
dimensionedScalar pos(const dimensionedScalar &ds)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void operator=(const PtrListDetail< T > &list)
Copy assignment (shallow copies addresses)
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void setAddressableSize(const label n) noexcept
Set addressed size to be inconsistent with allocated storage.
label find_next_not(label pos) const
Locate the next null entry, starting one beyond the specified position.
void resize(const label newLen)
Reset size of list.
label count() const noexcept
Return the number of non-null entries.
label find_first() const
Locate the first entry that is non-null.
autoPtr< List< T * > > clone() const
Clone.
constexpr PtrListDetail() noexcept
Default construct.
void free()
Delete allocated entries and reassign to nullptr. Does not affect the list size.
Foam::argList args(argc, argv)
label find_next(label pos) const
Locate the next non-null entry, starting one beyond the specified position.