![]() |
|
Public Member Functions | |
autoPtr (T *=NULL) | |
Store object pointer. | |
autoPtr (const autoPtr< T > &) | |
Construct as copy by transfering pointer to this autoPtr and. | |
~autoPtr () | |
Delete object if pointer is not NULL. | |
bool | valid () const |
Is the autoPtr valid, i.e. is the pointer set. | |
T * | ptr () |
Return object pointer for reuse. | |
void | reset (T *p=NULL) |
If object pointer points to valid object:. | |
void | clear () |
If object pointer points to valid object:. | |
T & | operator() () |
const T & | operator() () const |
operator const T & () const | |
T * | operator-> () |
Return object pointer. | |
const T * | operator-> () const |
Return const object pointer. | |
void | operator= (const autoPtr< T > &) |
|
Store object pointer.
Definition at line 48 of file autoPtrI.H. References autoPtr::ptr_. |
|
Construct as copy by transfering pointer to this autoPtr and. setting the arguments pointer to NULL Definition at line 56 of file autoPtrI.H. References autoPtr::clear(). |
Here is the call graph for this function:
|
Delete object if pointer is not NULL.
Definition at line 66 of file autoPtrI.H. |
|
If object pointer points to valid object:. delete object and set pointer to NULL Definition at line 108 of file autoPtrI.H. References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::T(). Referenced by autoPtr::autoPtr(). |
Here is the call graph for this function:
|
Definition at line 145 of file autoPtrI.H. References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::T(). |
Here is the call graph for this function:
|
Definition at line 131 of file autoPtrI.H. |
|
Definition at line 117 of file autoPtrI.H. |
|
Return const object pointer.
Definition at line 184 of file autoPtrI.H. References autoPtr::reset(). |
Here is the call graph for this function:
|
Return object pointer.
Definition at line 169 of file autoPtrI.H. |
|
Definition at line 191 of file autoPtrI.H. |
|
Return object pointer for reuse.
Definition at line 83 of file autoPtrI.H. Referenced by autoPtr::valid(). |
|
If object pointer points to valid object:. delete object and set pointer to that given Definition at line 94 of file autoPtrI.H. Referenced by autoPtr::operator->(). |
|
Is the autoPtr valid, i.e. is the pointer set.
Definition at line 76 of file autoPtrI.H. References autoPtr::ptr(), and Foam::T(). |
Here is the call graph for this function: