MoochoPack: Miscellaneous Utilities for MOOCHO
Version of the Day
|
Template class that implements ReleaseResource interface for a RCP<T> object. More...
#include <ReleaseResource_ref_count_ptr.hpp>
Public Types | |
typedef Teuchos::RCP< T > | ptr_t |
Public Member Functions | |
ReleaseResource_ref_count_ptr (const ptr_t &ptr) | |
Construct from a pointer. More... | |
bool | resource_is_bound () const |
Public Member Functions inherited from MemMngPack::ReleaseResource | |
virtual | ~ReleaseResource () |
When object is deleted so will the resource if it is not needed anymore. More... | |
Public Attributes | |
ptr_t | ptr |
Just give public access to pointer. More... | |
Template class that implements ReleaseResource interface for a RCP<T> object.
Note that ~ReleaseResource_ref_count_ptr() does not need to be implemented since the compiler generated version will already be correct.
Definition at line 58 of file ReleaseResource_ref_count_ptr.hpp.
typedef Teuchos::RCP<T> MemMngPack::ReleaseResource_ref_count_ptr< T >::ptr_t |
Definition at line 62 of file ReleaseResource_ref_count_ptr.hpp.
|
inline |
Construct from a pointer.
Definition at line 83 of file ReleaseResource_ref_count_ptr.hpp.
|
virtual |
Implements MemMngPack::ReleaseResource.
Definition at line 91 of file ReleaseResource_ref_count_ptr.hpp.
ptr_t MemMngPack::ReleaseResource_ref_count_ptr< T >::ptr |
Just give public access to pointer.
Definition at line 65 of file ReleaseResource_ref_count_ptr.hpp.