Go to the documentation of this file.
60 template<
class T>
class autoPtr;
61 template<
class T>
class refPtr;
62 template<
class T>
class tmp;
63 template<
class T>
class PtrList;
91 inline constexpr
PtrList() noexcept;
94 inline explicit PtrList(
const label len);
106 template<
class CloneArg>
130 template<
class... Args>
139 const T*
set(
const label i)
const {
return this->
get(i); }
149 void resize(
const label newLen);
155 template<
class... Args>
168 inline void append(std::unique_ptr<T>&& ptr);
177 template<
class... Args>
191 inline autoPtr<T> set(
const label i, std::unique_ptr<T>&& ptr);
A class for managing temporary objects.
void emplace_append(Args &&... args)
void operator=(const PtrList< T > &list)
autoPtr< T > release(const label i)
Istream & operator>>(Istream &, directionInfo &)
const T * set(const label i) const
Forward declarations for SLPtrList.
Template class for non-intrusive linked PtrLists.
A helper class when constructing from an Istream or dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void setSize(const label newLen)
constexpr PtrList() noexcept
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
void readIstream(Istream &is, const INew &inew)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
PtrList< T > clone(Args &&... args) const
void resize(const label newLen)
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...
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
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)