Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc > Class Template Reference

A deallocator class that wraps a simple value object and delegates to another deallocator object. More...

#include <Teuchos_RCPDecl.hpp>

List of all members.

Public Types

typedef Dealloc::ptr_t ptr_t

Public Member Functions

 EmbeddedObjDealloc (const Embedded &embedded, EPrePostDestruction prePostDestroy, Dealloc dealloc)
void setObj (const Embedded &embedded)
const Embedded & getObj () const
Embedded & getNonconstObj ()
void free (T *ptr)

Private Member Functions

 EmbeddedObjDealloc ()

Private Attributes

Embedded embedded_
EPrePostDestruction prePostDestroy_
Dealloc dealloc_

Related Functions

(Note that these are not member functions.)



template<class T , class Embedded >
EmbeddedObjDealloc< T,
Embedded, DeallocDelete< T > > 
embeddedObjDeallocDelete (const Embedded &embedded, EPrePostDestruction prePostDestroy)
 Create a dealocator with an embedded object.

Detailed Description

template<class T, class Embedded, class Dealloc>
class Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >

A deallocator class that wraps a simple value object and delegates to another deallocator object.

The type Embedded must be a true value object with a default constructor, a copy constructor, and an assignment operator.

Definition at line 1002 of file Teuchos_RCPDecl.hpp.


Member Typedef Documentation

template<class T, class Embedded, class Dealloc>
typedef Dealloc::ptr_t Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::ptr_t

Definition at line 1005 of file Teuchos_RCPDecl.hpp.


Constructor & Destructor Documentation

template<class T, class Embedded, class Dealloc>
Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::EmbeddedObjDealloc ( const Embedded &  embedded,
EPrePostDestruction  prePostDestroy,
Dealloc  dealloc 
) [inline]

Definition at line 1006 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::EmbeddedObjDealloc (  )  [private]

Member Function Documentation

template<class T, class Embedded, class Dealloc>
void Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::setObj ( const Embedded &  embedded  )  [inline]

Definition at line 1011 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
const Embedded& Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::getObj (  )  const [inline]

Definition at line 1012 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
Embedded& Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::getNonconstObj (  )  [inline]

Definition at line 1013 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
void Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::free ( T *  ptr  )  [inline]

Definition at line 1014 of file Teuchos_RCPDecl.hpp.


Friends And Related Function Documentation

template<class T , class Embedded >
EmbeddedObjDealloc< T, Embedded, DeallocDelete< T > > embeddedObjDeallocDelete ( const Embedded &  embedded,
EPrePostDestruction  prePostDestroy 
) [related]

Create a dealocator with an embedded object.

Definition at line 1036 of file Teuchos_RCPDecl.hpp.


Member Data Documentation

template<class T, class Embedded, class Dealloc>
Embedded Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::embedded_ [private]

Definition at line 1023 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
EPrePostDestruction Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::prePostDestroy_ [private]

Definition at line 1024 of file Teuchos_RCPDecl.hpp.

template<class T, class Embedded, class Dealloc>
Dealloc Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::dealloc_ [private]

Definition at line 1025 of file Teuchos_RCPDecl.hpp.


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

Generated on Tue Oct 20 10:14:05 2009 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.1