Go to the documentation of this file.
70 inline explicit tmp(
T* = 0);
79 inline tmp(
const tmp<T>&,
bool allowTransfer);
91 inline bool isTmp()
const;
95 inline bool empty()
const;
99 inline bool valid()
const;
104 inline T*
ptr()
const;
108 inline void clear()
const;
120 inline operator const T&()
const;
T & operator()()
Dereference operator.
A class for managing temporary objects.
T * operator->()
Return object pointer.
bool isTmp() const
Return true if this is really a temporary object.
const T & ref_
Const reference to constant object.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
T * ptr() const
Return tmp pointer for reuse.
bool valid() const
Is this temporary object valid,.
tmp(T *=0)
Store object pointer.
T * ptr_
Pointer to temporary object.
bool empty() const
Return true if this temporary object empty,.
void operator=(const tmp< T > &)
Assignment operator.
bool isTmp_
Flag for whether object is a temporary or a constant object.
~tmp()
Destructor, delete object when reference count == 0.
void clear() const
If object pointer points to valid object: