A class for managing temporary objects without reference counting. More...

Classes | |
| class | refCount |
Public Member Functions | |
| tmpNrc (T *=0) | |
| Store object pointer. More... | |
| tmpNrc (const T &) | |
| Store object const reference. More... | |
| tmpNrc (const tmpNrc< T > &) | |
| Construct copy. More... | |
| tmpNrc (tmpNrc< T > &&) | |
| Construct copy moving content. More... | |
| tmpNrc (const tmpNrc< T > &, bool allowTransfer) | |
| Construct copy transferring content of temporary if required. More... | |
| ~tmpNrc () | |
| Destructor: deletes object if it is temporary. More... | |
| bool | isTmp () const |
| Return true if this is really a temporary object. More... | |
| bool | empty () const |
| Return true if this temporary object empty,. More... | |
| bool | valid () const |
| Is this temporary object valid,. More... | |
| word | typeName () const |
| Return the type name of the tmpNrc. More... | |
| T & | ref () |
| Return non-const reference or generate a fatal error. More... | |
| T * | ptr () const |
| Return tmpNrc pointer for reuse. More... | |
| void | clear () const |
| If object pointer points to valid object: More... | |
| const T & | operator() () const |
| Const dereference operator. More... | |
| operator const T & () const | |
| Const cast to the underlying type reference. More... | |
| T * | operator-> () |
| Return object pointer. More... | |
| const T * | operator-> () const |
| Return const object pointer. More... | |
| void | operator= (T *) |
| Assignment to pointer changing this tmpNrc to a temporary T. More... | |
| void | operator= (const tmpNrc< T > &) |
| Assignment transferring the temporary T to this tmpNrc. More... | |
| void | operator= (tmpNrc< T > &&) |
| Move assignment transferring the temporary T to this tmpNrc. More... | |
A class for managing temporary objects without reference counting.
Construct copy.
Definition at line 48 of file tmpNrcI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, tmpNrc< T >::isTmp(), and tmpNrc< T >::typeName().

Construct copy moving content.
Definition at line 70 of file tmpNrcI.H.
References tmpNrc< T >::isTmp().

|
inline |
|
inline |
Return true if this is really a temporary object.
Definition at line 115 of file tmpNrcI.H.
Referenced by tmpNrc< T >::operator=(), and tmpNrc< T >::tmpNrc().

|
inline |
|
inline |
|
inline |
Return the type name of the tmpNrc.
constructed from the type name of T
Definition at line 136 of file tmpNrcI.H.
Referenced by tmpNrc< T >::tmpNrc().

|
inline |
Return non-const reference or generate a fatal error.
if the object is const.
Definition at line 143 of file tmpNrcI.H.
Referenced by nearest::srcWeights(), nearest::tgtWeights(), and patchToPatch::update().

|
inline |
Return tmpNrc pointer for reuse.
Returns a clone if the object is not a temporary
Definition at line 167 of file tmpNrcI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::T().

|
inline |
|
inline |
Const dereference operator.
Definition at line 204 of file tmpNrcI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
inline |
|
inline |
Return object pointer.
Definition at line 229 of file tmpNrcI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
inline |
Return const object pointer.
Definition at line 252 of file tmpNrcI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
inline |
Assignment to pointer changing this tmpNrc to a temporary T.
Definition at line 266 of file tmpNrcI.H.
References Foam::abort(), clear(), Foam::FatalError, and FatalErrorInFunction.

Assignment transferring the temporary T to this tmpNrc.
Definition at line 283 of file tmpNrcI.H.
References Foam::abort(), clear(), Foam::FatalError, FatalErrorInFunction, tmpNrc< T >::isTmp(), Foam::name(), and Foam::T().
