OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
agg_util::RCObjectInterface Class Referenceabstract

Interface class for a reference counted object. More...

#include <RCObjectInterface.h>

Inheritance diagram for agg_util::RCObjectInterface:
Inheritance graph
Collaboration diagram for agg_util::RCObjectInterface:
Collaboration graph

Public Member Functions

virtual int getRefCount () const =0
 Get the current reference count. More...
 
virtual int ref () const =0
 Increase the reference count by one. More...
 
virtual void removeFromPool () const =0
 If the object is in an auto-delete pool, remove it from the pool and force it to only delete when it's ref count goes to 0. More...
 
virtual std::string toString () const =0
 
virtual int unref () const =0 throw ()
 Decrease the reference count by one. More...
 
virtual ~RCObjectInterface ()=0
 

Detailed Description

Interface class for a reference counted object.

Definition at line 40 of file RCObjectInterface.h.

Constructor & Destructor Documentation

agg_util::RCObjectInterface::~RCObjectInterface ( )
pure virtual

Definition at line 34 of file RCObjectInterface.cc.

Member Function Documentation

virtual int agg_util::RCObjectInterface::getRefCount ( ) const
pure virtual

Get the current reference count.

Implemented in agg_util::RCObject.

virtual int agg_util::RCObjectInterface::ref ( ) const
pure virtual

Increase the reference count by one.

const since we do not consider the ref count part of the semantic constness of the rep

Implemented in agg_util::RCObject.

Referenced by agg_util::AggMemberDatasetSharedDDSWrapper::AggMemberDatasetSharedDDSWrapper().

virtual void agg_util::RCObjectInterface::removeFromPool ( ) const
pure virtual

If the object is in an auto-delete pool, remove it from the pool and force it to only delete when it's ref count goes to 0.

Useful when we desire a particular object stay around outside of the pool's lifetime.

Implemented in agg_util::RCObject.

virtual int agg_util::RCObjectInterface::unref ( ) const
throw (
)
pure virtual

Decrease the reference count by one.

If it goes from 1 to 0, delete this and this is no longer valid.

Returns
the new ref count. If it is 0, the called knows the object was deleted.

It is illegal to unref() an object with a count of 0. We don't throw to allow use in dtors, so the caller is to not do it!

const since the reference count is not part of the semantic constness of the rep

Implemented in agg_util::RCObject.


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