MoochoPack: Miscellaneous Utilities for MOOCHO  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
MemMngPack::ReleaseResource_ref_count_ptr< T > Class Template Reference

Template class that implements ReleaseResource interface for a RCP<T> object. More...

#include <ReleaseResource_ref_count_ptr.hpp>

Inheritance diagram for MemMngPack::ReleaseResource_ref_count_ptr< T >:
Inheritance graph
[legend]

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...
 

Detailed Description

template<class T>
class MemMngPack::ReleaseResource_ref_count_ptr< T >

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.

Member Typedef Documentation

template<class T >
typedef Teuchos::RCP<T> MemMngPack::ReleaseResource_ref_count_ptr< T >::ptr_t

Definition at line 62 of file ReleaseResource_ref_count_ptr.hpp.

Constructor & Destructor Documentation

template<class T >
MemMngPack::ReleaseResource_ref_count_ptr< T >::ReleaseResource_ref_count_ptr ( const ptr_t ptr)
inline

Construct from a pointer.

Definition at line 83 of file ReleaseResource_ref_count_ptr.hpp.

Member Function Documentation

template<class T >
bool MemMngPack::ReleaseResource_ref_count_ptr< T >::resource_is_bound ( ) const
virtual

Implements MemMngPack::ReleaseResource.

Definition at line 91 of file ReleaseResource_ref_count_ptr.hpp.

Member Data Documentation

template<class T >
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.


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