Go to the documentation of this file.
45 #ifndef PtrListDetail_H
46 #define PtrListDetail_H
105 template<
class... Args>
110 inline void resize(
const label newLen);
132 void setSize(
const label) =
delete;
133 void setSize(
const label,
const T&) =
delete;
134 void setSize(
const label,
const T*) =
delete;
label findNull() const
Locate the first null entry, -1 if there are not any.
label count() const
Return the count of non-nullptr entries.
constexpr PtrListDetail() noexcept
Default construct.
void setNull()
Assign all pointers to nullptr, without deleting.
void setAddressableSize(const label n) noexcept
Set addressed size to be inconsistent with allocated storage.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void free()
Delete the allocated entries, but retain the list size.
void operator=(const PtrListDetail< T > &list)
Copy assignment (shallow copies addresses)
OBJstream os(runTime.globalPath()/outputName)
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...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void resize(const label newLen)
Reset size of list.
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< List< T * > > clone() const
Clone.
Foam::argList args(argc, argv)
void setSize(const label)=delete
void resize_nocopy(const label)=delete