|
|
|
autoPtr Class Template ReferenceInheritance diagram for autoPtr:![]() ![]() Detailed Descriptiontemplate<class T>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | set (T *p) |
| Set pointer to that given. | |
| void | reset (T *p=NULL) |
| If object pointer already set delete object and. | |
| 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 > &) |
| autoPtr | ( | T * | = NULL |
) | [inline, explicit] |
Construct as copy by transfering pointer to this autoPtr and.
setting the arguments pointer to NULL
Definition at line 51 of file autoPtrI.H.
| ~autoPtr | ( | ) | [inline] |
| bool valid | ( | ) | const [inline] |
Is the autoPtr valid, i.e. is the pointer set.
Definition at line 71 of file autoPtrI.H.
References autoPtr::ptr(), and Foam::T().
Here is the call graph for this function:

| T * ptr | ( | ) | [inline] |
Return object pointer for reuse.
Definition at line 78 of file autoPtrI.H.
Referenced by autoPtr::valid().
Here is the caller graph for this function:

| void set | ( | T * | p | ) | [inline] |
Set pointer to that given.
If object pointer already set issue a FatalError.
Definition at line 89 of file autoPtrI.H.
| void reset | ( | T * | p = NULL |
) | [inline] |
If object pointer already set delete object and.
set pointer to that given
Definition at line 105 of file autoPtrI.H.
| void clear | ( | ) | [inline] |
If object pointer points to valid object:.
delete object and set pointer to NULL
Definition at line 119 of file autoPtrI.H.
References FatalErrorIn.
| T & operator() | ( | ) | [inline] |
Definition at line 128 of file autoPtrI.H.
| const T & operator() | ( | ) | const [inline] |
Definition at line 142 of file autoPtrI.H.
| operator const T & | ( | ) | const [inline] |
| T * operator-> | ( | ) | [inline] |
| const T * operator-> | ( | ) | const [inline] |
| void operator= | ( | const autoPtr< T > & | ) | [inline] |
Definition at line 202 of file autoPtrI.H.