thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::Pointer::RCPtrBase Class Reference

RCPtrBase is the base class of RCPtr and ConstRCPtr which are reference counted (smart) pointers. More...

#include <RCPtr.h>

Inheritance diagram for ThePEG::Pointer::RCPtrBase:

Protected Member Functions

void increment (const ReferenceCounted *rcp)
 Increment the counter of a reference counted object.
 
bool release (const ReferenceCounted *rcp)
 Decrement the counter of a reference counted object.
 

Private Types

typedef ReferenceCounted::CounterType CounterType
 Get counter type from ReferenceCounted class.
 

Detailed Description

RCPtrBase is the base class of RCPtr and ConstRCPtr which are reference counted (smart) pointers.

The RCPtrBase class communicates with the ReferenceCounted object which must be the base class of all objects pointed to and which keeps count of the pointers pointing to an object.

See also
ReferenceCounted

Definition at line 30 of file RCPtr.h.

Member Typedef Documentation

◆ CounterType

Get counter type from ReferenceCounted class.

Definition at line 33 of file RCPtr.h.

Member Function Documentation

◆ increment()

void ThePEG::Pointer::RCPtrBase::increment ( const ReferenceCounted rcp)
inlineprotected

Increment the counter of a reference counted object.

Definition at line 40 of file RCPtr.h.

References ThePEG::Pointer::ReferenceCounted::incrementReferenceCount().

Referenced by ThePEG::Pointer::RCPtr< T >::increment(), and ThePEG::Pointer::ConstRCPtr< T >::increment().

◆ release()

bool ThePEG::Pointer::RCPtrBase::release ( const ReferenceCounted rcp)
inlineprotected

Decrement the counter of a reference counted object.

Definition at line 46 of file RCPtr.h.

References ThePEG::Pointer::ReferenceCounted::decrementReferenceCount().

Referenced by ThePEG::Pointer::RCPtr< T >::release(), and ThePEG::Pointer::ConstRCPtr< T >::release().


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