OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
RCObject Class Referenceabstract

Abstract base class for reference counted objects. More...

#include <RCObject.h>

Inheritance diagram for RCObject:
Collaboration diagram for RCObject:

Public Member Functions

int addReference () const
 Increment reference count.
int removeReference () const
 Decrement the reference count.
bool isShared () const
 Test for sharing.

Protected Member Functions

 RCObject ()
 Default constructor.
 RCObject (const RCObject &)
 Copy constructor.
virtual ~RCObject ()=0
RCObjectoperator= (const RCObject &right)

Private Attributes

int refCount

Detailed Description

Abstract base class for reference counted objects.

Definition at line 40 of file RCObject.h.

Constructor & Destructor Documentation

◆ RCObject() [1/2]

RCObject::RCObject ( )
inlineprotected

Default constructor.

Definition at line 98 of file RCObject.h.

References refCount.

Referenced by AttributeBase::AttributeBase(), AttributeHandler::AttributeHandler(), ElementBase::ElementBase(), ElementBase::ElementBase(), Object::Object(), Object::Object(), operator=(), and RCObject().

Here is the caller graph for this function:

◆ RCObject() [2/2]

RCObject::RCObject ( const RCObject & )
inlineprotected

Copy constructor.

Definition at line 103 of file RCObject.h.

References RCObject(), and refCount.

Here is the call graph for this function:

◆ ~RCObject()

RCObject::~RCObject ( )
inlineprotectedpure virtual

Definition at line 108 of file RCObject.h.

Member Function Documentation

◆ addReference()

int RCObject::addReference ( ) const
inline

Increment reference count.

Definition at line 83 of file RCObject.h.

References refCount.

Referenced by Pointer< Object >::operator=(), Pointer< Object >::operator=(), and Pointer< Object >::unique().

Here is the caller graph for this function:

◆ isShared()

bool RCObject::isShared ( ) const
inline

Test for sharing.

Definition at line 93 of file RCObject.h.

References refCount.

◆ operator=()

RCObject & RCObject::operator= ( const RCObject & right)
inlineprotected

Definition at line 112 of file RCObject.h.

References RCObject().

Here is the call graph for this function:

◆ removeReference()

int RCObject::removeReference ( ) const
inline

Decrement the reference count.

Definition at line 88 of file RCObject.h.

References refCount.

Member Data Documentation

◆ refCount

int RCObject::refCount
mutableprivate

Definition at line 76 of file RCObject.h.

Referenced by addReference(), isShared(), RCObject(), RCObject(), and removeReference().


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