Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Teuchos::DeallocFunctorDelete< T, DeleteFunctor > Class Template Reference

Deallocator subclass that Allows any functor object (including a function pointer) to be used to free an object. More...

#include <Teuchos_RCPDecl.hpp>

Public Types

typedef T ptr_t

Public Member Functions

 DeallocFunctorDelete (DeleteFunctor deleteFunctor)
void free (T *ptr)

Private Member Functions

 DeallocFunctorDelete ()

Private Attributes

DeleteFunctor deleteFunctor_

(Note that these are not member symbols.)

template<class T, class DeleteFunctor>
DeallocFunctorDelete< T, DeleteFunctor > deallocFunctorDelete (DeleteFunctor deleteFunctor)
 A simple function used to create a functor deallocator object.

Detailed Description

template<class T, class DeleteFunctor>
class Teuchos::DeallocFunctorDelete< T, DeleteFunctor >

Deallocator subclass that Allows any functor object (including a function pointer) to be used to free an object.

Note, the only requirement is that deleteFuctor(ptr) 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 1053 of file Teuchos_RCPDecl.hpp.

Member Typedef Documentation

◆ ptr_t

template<class T, class DeleteFunctor>
typedef T Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::ptr_t

Definition at line 1057 of file Teuchos_RCPDecl.hpp.

Constructor & Destructor Documentation

◆ DeallocFunctorDelete() [1/2]

template<class T, class DeleteFunctor>
Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::DeallocFunctorDelete ( DeleteFunctor deleteFunctor)
inline

Definition at line 1056 of file Teuchos_RCPDecl.hpp.

◆ DeallocFunctorDelete() [2/2]

template<class T, class DeleteFunctor>
Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::DeallocFunctorDelete ( )
private

Member Function Documentation

◆ free()

template<class T, class DeleteFunctor>
void Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::free ( T * ptr)
inline

Definition at line 1058 of file Teuchos_RCPDecl.hpp.

◆ deallocFunctorDelete()

template<class T, class DeleteFunctor>
DeallocFunctorDelete< T, DeleteFunctor > deallocFunctorDelete ( DeleteFunctor deleteFunctor)
related

A simple function used to create a functor deallocator object.

Definition at line 1071 of file Teuchos_RCPDecl.hpp.

Member Data Documentation

◆ deleteFunctor_

template<class T, class DeleteFunctor>
DeleteFunctor Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::deleteFunctor_
private

Definition at line 1060 of file Teuchos_RCPDecl.hpp.


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