Go to the documentation of this file.
78 list =
reinterpret_cast<T*
>(0);
83 template<
class CloneArg>
87 const CloneArg& cloneArg
105 template<
class... Args>
155 template<
class... Args>
162 return set(i,
new T(std::forward<Args>(
args)...));
195 return set(i, ptr.release());
203 std::unique_ptr<T>&& ptr
206 return set(i, ptr.release());
228 return set(i, ptr.ptr());
235 if (i < 0 || i >= this->size())
247 (this->ptrs_).free();
257 this->transfer(list);
void set(List< bool > &bools, const labelRange &range)
A class for managing temporary objects.
void emplace_append(Args &&... args)
void operator=(const PtrList< T > &list)
autoPtr< T > release(const label i)
const T * set(const label i) const
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
constexpr PtrList() noexcept
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
PtrList< T > clone(Args &&... args) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
autoPtr< T > emplace(const label i, Args &&... args)
Foam::argList args(argc, argv)
void transfer(PtrList< T > &list)
A class for managing references or pointers (no reference counting)