Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Related Symbols | List of all members
Teuchos::DeallocFunctorHandleDelete< T, DeleteHandleFunctor > Class Template Reference

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 Symbols

(Note that these are not member symbols.)

template<class T , class DeleteHandleFunctor >
DeallocFunctorHandleDelete< T, DeleteHandleFunctordeallocFunctorHandleDelete (DeleteHandleFunctor deleteHandleFunctor)
 A simple function used to create a functor deallocator object.
 

Detailed Description

template<class T, class DeleteHandleFunctor>
class Teuchos::DeallocFunctorHandleDelete< T, DeleteHandleFunctor >

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 1091 of file Teuchos_RCPDecl.hpp.

Member Typedef Documentation

◆ ptr_t

Definition at line 1096 of file Teuchos_RCPDecl.hpp.

Constructor & Destructor Documentation

◆ DeallocFunctorHandleDelete() [1/2]

Teuchos::DeallocFunctorHandleDelete< T, DeleteHandleFunctor >::DeallocFunctorHandleDelete ( DeleteHandleFunctor deleteHandleFunctor)
inline

Definition at line 1094 of file Teuchos_RCPDecl.hpp.

◆ DeallocFunctorHandleDelete() [2/2]

Teuchos::DeallocFunctorHandleDelete< T, DeleteHandleFunctor >::DeallocFunctorHandleDelete ( )
private

Member Function Documentation

◆ free()

Definition at line 1097 of file Teuchos_RCPDecl.hpp.

Friends And Related Symbol Documentation

◆ deallocFunctorHandleDelete()

DeallocFunctorHandleDelete< T, DeleteHandleFunctor > deallocFunctorHandleDelete ( DeleteHandleFunctor deleteHandleFunctor)
related

A simple function used to create a functor deallocator object.

Definition at line 1110 of file Teuchos_RCPDecl.hpp.

Member Data Documentation

◆ deleteHandleFunctor_

Definition at line 1099 of file Teuchos_RCPDecl.hpp.


The documentation for this class was generated from the following file: