Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A deallocator class that wraps a simple value object and delegates to another deallocator object. More...
#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) |
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 using delete. More... | |
template<class T , class Embedded > | |
EmbeddedObjDealloc< T, Embedded, DeallocArrayDelete < T > > | embeddedObjDeallocArrayDelete (const Embedded &embedded, EPrePostDestruction prePostDestroy) |
Create a dealocator with an embedded object using delete []. More... | |
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 1113 of file Teuchos_RCPDecl.hpp.
typedef Dealloc::ptr_t Teuchos::EmbeddedObjDealloc< T, Embedded, Dealloc >::ptr_t |
Definition at line 1116 of file Teuchos_RCPDecl.hpp.
|
inline |
Definition at line 1117 of file Teuchos_RCPDecl.hpp.
|
private |
|
inline |
Definition at line 1122 of file Teuchos_RCPDecl.hpp.
|
inline |
Definition at line 1123 of file Teuchos_RCPDecl.hpp.
|
inline |
Definition at line 1124 of file Teuchos_RCPDecl.hpp.
|
inline |
Definition at line 1125 of file Teuchos_RCPDecl.hpp.
|
related |
Create a dealocator with an embedded object using delete.
Definition at line 1147 of file Teuchos_RCPDecl.hpp.
|
related |
Create a dealocator with an embedded object using delete [].
Definition at line 1160 of file Teuchos_RCPDecl.hpp.
|
private |
Definition at line 1134 of file Teuchos_RCPDecl.hpp.
|
private |
Definition at line 1135 of file Teuchos_RCPDecl.hpp.
|
private |
Definition at line 1136 of file Teuchos_RCPDecl.hpp.