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