75 inline void operator++();
87 inline explicit tmp(
T* = 0);
99 inline tmp(
const tmp<T>&,
bool allowTransfer);
111 inline bool isTmp()
const;
115 inline bool empty()
const;
119 inline bool valid()
const;
130 inline T&
ref()
const;
134 inline T*
ptr()
const;
138 inline void clear()
const;
153 inline operator const T&()
const;
void clear() const
If object pointer points to valid object:
Reference counter for various OpenFOAM components.
const T & operator()() const
Const dereference operator.
T & ref() const
Return non-const reference or generate a fatal error.
bool isTmp() const
Return true if this is really a temporary object.
T * operator->()
Return object pointer.
word typeName() const
Return the type name of the tmp.
bool valid() const
Is this temporary object valid,.
void operator=(T *)
Assignment to pointer changing this tmp to a temporary T.
A class for handling words, derived from string.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
~tmp()
Destructor: deletes temporary object when the reference count is 0.
bool empty() const
Return true if this temporary object empty,.
T * ptr() const
Return tmp pointer for reuse.
A class for managing temporary objects.
tmp(T *=0)
Store object pointer.