Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::RefBase::DeleterBase Class Reference

Public Member Functions

bool hasExternal () const
void setNoDestroy (bool x)

Protected Member Functions

bool _destroyHandle (const void *instance, ExternalRef &handle)
bool _destroyHandle (void *instance, ExternalRef &handle)
 DeleterBase (ExternalRef h)
 DeleterBase (ExternalRef h, bool no_destroy)

Protected Attributes

Internal::ExternalRef m_handle
 External handle responsible for the destruction of the instance.
bool m_no_destroy = false
 Indicates whether the instance destructor should be called when there are no more references to it.

Friends

class ReferenceCounterImpl

Detailed Description

Definition at line 43 of file RefBase.h.

Constructor & Destructor Documentation

◆ DeleterBase() [1/2]

Arcane::RefBase::DeleterBase::DeleterBase ( ExternalRef h)
inlineprotected

Definition at line 65 of file RefBase.h.

◆ DeleterBase() [2/2]

Arcane::RefBase::DeleterBase::DeleterBase ( ExternalRef h,
bool no_destroy )
inlineprotected

Definition at line 68 of file RefBase.h.

Member Function Documentation

◆ _destroyHandle() [1/2]

bool Arcane::RefBase::DeleterBase::_destroyHandle ( const void * instance,
Internal::ExternalRef & handle )
protected

Definition at line 49 of file Ref.cc.

◆ _destroyHandle() [2/2]

bool Arcane::RefBase::DeleterBase::_destroyHandle ( void * instance,
Internal::ExternalRef & handle )
protected

Definition at line 58 of file Ref.cc.

◆ hasExternal()

bool Arcane::RefBase::DeleterBase::hasExternal ( ) const
inline

Definition at line 50 of file RefBase.h.

◆ setNoDestroy()

void Arcane::RefBase::DeleterBase::setNoDestroy ( bool x)
inline

Definition at line 51 of file RefBase.h.

◆ ReferenceCounterImpl

friend class ReferenceCounterImpl
friend

Definition at line 46 of file RefBase.h.

Member Data Documentation

◆ m_handle

Internal::ExternalRef Arcane::RefBase::DeleterBase::m_handle
protected

External handle responsible for the destruction of the instance.

Definition at line 76 of file RefBase.h.

◆ m_no_destroy

bool Arcane::RefBase::DeleterBase::m_no_destroy = false
protected

Indicates whether the instance destructor should be called when there are no more references to it.

Definition at line 81 of file RefBase.h.


The documentation for this class was generated from the following files: