MOOCHO (Single Doxygen Collection) Version of the Day
Public Member Functions
MemMngPack::ReleaseResource Class Reference

Abstract interface for releasing an object when it is not needed anymore {abstract}. More...

#include <ReleaseResource.hpp>

Inheritance diagram for MemMngPack::ReleaseResource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ReleaseResource ()
 When object is deleted so will the resource if it is not needed anymore.
virtual bool resource_is_bound () const =0
 Returns true if a resource is bound to this object.

Detailed Description

Abstract interface for releasing an object when it is not needed anymore {abstract}.

The purpose of this object is so that a client can give another peer a means to release needed resources when that object is not bound anymore.

Definition at line 54 of file ReleaseResource.hpp.


Constructor & Destructor Documentation

virtual MemMngPack::ReleaseResource::~ReleaseResource ( ) [inline, virtual]

When object is deleted so will the resource if it is not needed anymore.

Definition at line 60 of file ReleaseResource.hpp.


Member Function Documentation

virtual bool MemMngPack::ReleaseResource::resource_is_bound ( ) const [pure virtual]

Returns true if a resource is bound to this object.

Implemented in AbstractLinAlgPack::MatrixSparseCOORSerial::ReleaseValRowColArrays, and MemMngPack::ReleaseResource_ref_count_ptr< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines