NeoPZ
Public Member Functions | Public Attributes | List of all members
TPZAutoPointer< T >::TPZReference< T2 > Struct Template Reference

Counter struct. More...

Collaboration diagram for TPZAutoPointer< T >::TPZReference< T2 >:
[legend]

Public Member Functions

 TPZReference ()
 
 TPZReference (T2 *pointer)
 
 ~TPZReference ()
 
void ReallocForNuma (int node_id)
 
bool Increment ()
 Increment the counter. More...
 
bool Decrease ()
 Decrease the counter. If the counter is zero, delete myself. More...
 

Public Attributes

T2 * fPointer
 Pointer to T2 object. More...
 
int * fCounter
 

Detailed Description

template<class T>
template<class T2>
struct TPZAutoPointer< T >::TPZReference< T2 >

Counter struct.

Definition at line 66 of file tpzautopointer.h.

Constructor & Destructor Documentation

◆ TPZReference() [1/2]

template<class T>
template<class T2>
TPZAutoPointer< T >::TPZReference< T2 >::TPZReference ( )
inline

Definition at line 72 of file tpzautopointer.h.

◆ TPZReference() [2/2]

template<class T>
template<class T2>
TPZAutoPointer< T >::TPZReference< T2 >::TPZReference ( T2 *  pointer)
inline

Definition at line 79 of file tpzautopointer.h.

◆ ~TPZReference()

template<class T>
template<class T2>
TPZAutoPointer< T >::TPZReference< T2 >::~TPZReference ( )
inline

Definition at line 86 of file tpzautopointer.h.

Member Function Documentation

◆ Decrease()

template<class T>
template<class T2>
bool TPZAutoPointer< T >::TPZReference< T2 >::Decrease ( )
inline

Decrease the counter. If the counter is zero, delete myself.

Definition at line 124 of file tpzautopointer.h.

◆ Increment()

template<class T>
template<class T2>
bool TPZAutoPointer< T >::TPZReference< T2 >::Increment ( )
inline

◆ ReallocForNuma()

template<class T>
template<class T2>
void TPZAutoPointer< T >::TPZReference< T2 >::ReallocForNuma ( int  node_id)
inline

Definition at line 98 of file tpzautopointer.h.

Member Data Documentation

◆ fCounter

template<class T>
template<class T2>
int* TPZAutoPointer< T >::TPZReference< T2 >::fCounter

◆ fPointer

template<class T>
template<class T2>
T2* TPZAutoPointer< T >::TPZReference< T2 >::fPointer

The documentation for this struct was generated from the following file: