Go to the documentation of this file.
79 template<
class T>
class tmp;
100 inline explicit Xfer(
T* = 0);
103 inline explicit Xfer(
T&,
bool allowTransfer=
false);
106 inline explicit Xfer(
const T&);
119 inline static const Xfer<T>&
null();
164 template<
class To,
class From>
179 template<
class To,
class From>
void operator=(T &)
Transfer the contents into the object.
A class for managing temporary objects.
A simple container for copying or transferring objects of type <T>.
Xfer< To > xferMoveTo(From &)
Construct by transferring the contents of the arg.
T * ptr_
Pointer to underlying datatype.
Xfer< T > xferTmp(Foam::tmp< T > &)
Construct by transferring the contents of the arg.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Xfer< To > xferCopyTo(const From &)
Construct by copying the contents of the arg.
T & operator()() const
Reference to the underlying datatype.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
Xfer< T > xferCopy(const T &)
Construct by copying the contents of the arg.
T * operator->() const
Pointer to the underlying datatype.
Xfer(T *=0)
Store object pointer and manage its deletion.