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&);
164 template<
class To,
class From>
179 template<
class To,
class From>
A simple container for copying or transferring objects of type <T>.
Xfer< T > xferCopy(const T &)
Construct by copying the contents of the arg.
void operator=(T &)
Transfer the contents into the object.
Xfer< To > xferCopyTo(const From &)
Construct by copying the contents of the arg.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
static const Xfer< T > & null()
Return a null object reference.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
T & operator()() const
Reference to the underlying datatype.
Xfer< T > xferTmp(Foam::tmp< T > &)
Construct by transferring the contents of the arg.
Xfer< To > xferMoveTo(From &)
Construct by transferring the contents of the arg.
A class for managing temporary objects.
T * operator->() const
Pointer to the underlying datatype.
Xfer(T *=0)
Store object pointer and manage its deletion.