Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Deallocator subclass that Allows any functor object (including a function pointer) to be used to free a handle (i.e. pointer to pointer) to an object. More...
#include <Teuchos_RCPDecl.hpp>
Public Types | |
typedef T | ptr_t |
Public Member Functions | |
DeallocFunctorHandleDelete (DeleteHandleFunctor deleteHandleFunctor) | |
void | free (T *ptr) |
Private Member Functions | |
DeallocFunctorHandleDelete () | |
Private Attributes | |
DeleteHandleFunctor | deleteHandleFunctor_ |
Related Functions | |
(Note that these are not member functions.) | |
template<class T , class DeleteHandleFunctor > | |
DeallocFunctorHandleDelete< T, DeleteHandleFunctor > | deallocFunctorHandleDelete (DeleteHandleFunctor deleteHandleFunctor) |
A simple function used to create a functor deallocator object. More... | |
Deallocator subclass that Allows any functor object (including a function pointer) to be used to free a handle (i.e. pointer to pointer) to an object.
Note, the only requirement is that deleteFuctor(ptrptr) can be called (which is true for a function pointer).
Note, a client should generally use the function deallocFunctorDelete()
to create this object and not try to construct it directly.
Definition at line 1079 of file Teuchos_RCPDecl.hpp.
typedef T Teuchos::DeallocFunctorHandleDelete< T, DeleteHandleFunctor >::ptr_t |
Definition at line 1084 of file Teuchos_RCPDecl.hpp.
|
inline |
Definition at line 1082 of file Teuchos_RCPDecl.hpp.
|
private |
|
inline |
Definition at line 1085 of file Teuchos_RCPDecl.hpp.
|
related |
A simple function used to create a functor deallocator object.
Definition at line 1098 of file Teuchos_RCPDecl.hpp.
|
private |
Definition at line 1087 of file Teuchos_RCPDecl.hpp.