77 inline bool isAnyTmp()
const;
79 inline void operator++();
91 inline explicit tmp(
T* = 0,
bool nonReusable =
false);
103 inline tmp(
const tmp<T>&,
bool allowTransfer);
115 inline bool isTmp()
const;
119 inline bool empty()
const;
123 inline bool valid()
const;
134 inline T&
ref()
const;
138 inline T*
ptr()
const;
142 inline void clear()
const;
157 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.
tmp(T *=0, bool nonReusable=false)
Store object pointer of a non-reusable or reusable 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.