RCPtrBase is the base class of RCPtr and ConstRCPtr which are reference counted (smart) pointers. More...
#include <RCPtr.h>
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. | |
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.
|
private |
Get counter type from ReferenceCounted class.
|
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().
|
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().