#include <Teuchos_RCPDecl.hpp>
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.) | |
template<class T , class Embedded > | |
EmbeddedObjDealloc< T, Embedded, DeallocDelete< T > > | embeddedObjDeallocDelete (const Embedded &embedded, EPrePostDestruction prePostDestroy) |
Create a dealocator with an embedded object. |
The type Embedded
must be a true value object with a default constructor, a copy constructor, and an assignment operator.
Definition at line 769 of file Teuchos_RCPDecl.hpp.
typedef Dealloc::ptr_t Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::ptr_t |
Definition at line 772 of file Teuchos_RCPDecl.hpp.
Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::EmbeddedObjDealloc | ( | const Embedded & | embedded, | |
EPrePostDestruction | prePostDestroy, | |||
Dealloc | dealloc | |||
) | [inline] |
Definition at line 773 of file Teuchos_RCPDecl.hpp.
void Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::free | ( | T * | ptr | ) | [inline] |
Definition at line 781 of file Teuchos_RCPDecl.hpp.
Embedded& Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::getNonconstObj | ( | ) | [inline] |
Definition at line 780 of file Teuchos_RCPDecl.hpp.
const Embedded& Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::getObj | ( | ) | const [inline] |
Definition at line 779 of file Teuchos_RCPDecl.hpp.
void Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::setObj | ( | const Embedded & | embedded | ) | [inline] |
Definition at line 778 of file Teuchos_RCPDecl.hpp.
EmbeddedObjDealloc< T, Embedded, DeallocDelete< T > > embeddedObjDeallocDelete | ( | const Embedded & | embedded, | |
EPrePostDestruction | prePostDestroy | |||
) | [related] |