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;
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
void operator=(T *)
Assignment to pointer changing this tmp to a temporary T.
bool valid() const
Is this temporary object valid,.
T * operator->()
Return object pointer.
word typeName() const
Return the type name of the tmp.
bool empty() const
Return true if this temporary object empty,.
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.
~tmp()
Destructor: deletes temporary object when the reference count is 0.
T * ptr() const
Return tmp pointer for reuse.
void clear() const
If object pointer points to valid object:
T & ref() const
Return non-const reference or generate a fatal error.
const T & operator()() const
Const dereference operator.
A class for handling words, derived from string.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)