bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
agg_util::DDSAccessRCInterface Class Referenceabstract

#include <DDSAccessInterface.h>

Inheritance diagram for agg_util::DDSAccessRCInterface:
Inheritance graph
Collaboration diagram for agg_util::DDSAccessRCInterface:
Collaboration graph

Public Member Functions

virtual const libdap::DDS * getDDS () const =0
 
virtual int getRefCount () const =0
 
virtual int ref () const =0
 
virtual void removeFromPool () const =0
 
virtual std::string toString () const =0
 
virtual int unref () const =0
 

Detailed Description

Mixture interface for when we a reference-counted DDS container

Definition at line 62 of file DDSAccessInterface.h.

Constructor & Destructor Documentation

◆ ~DDSAccessRCInterface()

agg_util::DDSAccessRCInterface::~DDSAccessRCInterface ( )
pure virtual

Definition at line 37 of file DDSAccessInterface.cc.

Member Function Documentation

◆ getDDS()

virtual const libdap::DDS * agg_util::DDSAccessInterface::getDDS ( ) const
pure virtualinherited

Accessor for a contained DDS. The returned object is to be considered an alias, and should NOT be deleted or stored outside the lifetime of this! If the object doesn't have a valid DDS currently, NULL is returned.

Returns
alias to the DDS that the object is containing, or NULL if none.

Implemented in ncml_module::NetcdfElement.

◆ getRefCount()

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

Get the current reference count

Implemented in agg_util::RCObject, and RCObject.

◆ ref()

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

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, and RCObject.

◆ removeFromPool()

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

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, and RCObject.

◆ toString()

◆ unref()

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

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, and RCObject.


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