Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc > Class Template Reference
[Teuchos Memory Management Utilities]

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)

Related Functions

(Note that these are not member functions.)

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.


Friends And Related Function Documentation

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


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:24:43 2010 for Teuchos - Trilinos Tools Package by  doxygen 1.4.7