Go to the documentation of this file.
33 return NullObjectRef<Xfer<T> >();
108 ptr_->transfer(*(t.
ptr_));
151 template<
class To,
class From>
160 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.
bool isTmp() const
Return true if this is really a temporary object.
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.
static const Xfer< T > & null()
Return a null object reference.
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.