NeoPZ
|
This class implements a reference counter mechanism to administer a dynamically allocated object. Utility. More...
#include <TPZPersistenceManager.h>
Classes | |
struct | TPZReference |
Counter struct. More... | |
Public Member Functions | |
TPZAutoPointer () | |
Creates an reference counted null pointer. More... | |
~TPZAutoPointer () | |
The destructor will delete the administered pointer if its reference count is zero. More... | |
TPZAutoPointer (T *obj) | |
This method will create an object which will administer the area pointed to by obj. More... | |
TPZAutoPointer (const TPZAutoPointer< T > ©) | |
Share the pointer of the copy. More... | |
TPZAutoPointer & | operator= (TPZAutoPointer< T > &©) |
Move assignment operator. More... | |
TPZAutoPointer & | operator= (const TPZAutoPointer< T > ©) |
Assignment operator. More... | |
operator T & () | |
Returns the referenced object. More... | |
T & | operator* () const |
Returns the referenced object. More... | |
T & | operator* () |
Returns the referenced object. More... | |
T * | operator-> () const |
Returns the pointer for referenced object. More... | |
T * | operator-> () |
void | ReallocForNuma (int node) |
operator bool () const | |
Returns if pointer was attributed. More... | |
operator bool () | |
int | Count () const |
Returns the counter value. More... | |
int | Count () |
Private Attributes | |
TPZReference< T > * | fRef |
The object which contains the pointer and the reference count. More... | |
Friends | |
template<typename R , typename T2 > | |
TPZAutoPointer< R > | TPZAutoPointerDynamicCast (TPZAutoPointer< T2 > in) |
This class implements a reference counter mechanism to administer a dynamically allocated object. Utility.
Definition at line 14 of file TPZPersistenceManager.h.
|
inline |
Creates an reference counted null pointer.
Definition at line 148 of file tpzautopointer.h.
|
inline |
The destructor will delete the administered pointer if its reference count is zero.
Definition at line 154 of file tpzautopointer.h.
|
inline |
This method will create an object which will administer the area pointed to by obj.
Definition at line 162 of file tpzautopointer.h.
|
inline |
Share the pointer of the copy.
Definition at line 168 of file tpzautopointer.h.
|
inline |
Returns the counter value.
Definition at line 236 of file tpzautopointer.h.
|
inline |
Definition at line 240 of file tpzautopointer.h.
|
inline |
Returns if pointer was attributed.
Definition at line 228 of file tpzautopointer.h.
|
inline |
Definition at line 231 of file tpzautopointer.h.
|
inline |
Returns the referenced object.
Definition at line 195 of file tpzautopointer.h.
|
inline |
Returns the referenced object.
Definition at line 201 of file tpzautopointer.h.
|
inline |
Returns the referenced object.
Definition at line 207 of file tpzautopointer.h.
|
inline |
Returns the pointer for referenced object.
Definition at line 213 of file tpzautopointer.h.
|
inline |
Definition at line 217 of file tpzautopointer.h.
|
inline |
Move assignment operator.
Definition at line 175 of file tpzautopointer.h.
|
inline |
Assignment operator.
Definition at line 185 of file tpzautopointer.h.
|
inline |
Definition at line 222 of file tpzautopointer.h.
Referenced by ParallelAssembleTask< TVar, TSubStruct >::addWorkItem(), DecomposeBig(), DecomposeInternal(), and TPZDohrSubstructCondense< TTVar >::ReallocMatRed().
|
friend |
Referenced by TPZAutoPointer< TPZDohrSubstructCondense< TVar > >::Count().
|
private |
The object which contains the pointer and the reference count.
Definition at line 144 of file tpzautopointer.h.
Referenced by TPZAutoPointer< TPZDohrSubstructCondense< TVar > >::operator=(), TPZAutoPointer< TPZDohrSubstructCondense< TVar > >::TPZAutoPointer(), and TPZAutoPointerDynamicCast().