|
Teuchos - Trilinos Tools Package
Version of the Day
|
Subclass for wrapped opaque objects with a free function. More...
#include <Teuchos_OpaqueWrapper.hpp>
Public Member Functions | |
| OpaqueWrapperWithFree (Opaque opaque, OpaqueFree opaqueFree) | |
| Constructor: takes the opaque handle, and its free function. | |
| ~OpaqueWrapperWithFree () | |
| Destructor: invokes the free function. | |
Subclass for wrapped opaque objects with a free function.
| Opaque | Type of the opaque object (a.k.a. handle). |
| OpaqueFree | Type of the function for freeing the handle. |
This subclass allows a client to easily wrap any opaque object that needs a function to free it. This function (or function object) must be callable as:
opaqueFree(&opaque);
It must also be copy constructible. (A function pointer is trivially copy constructible.) Please refer to the documentation of OpaqueWrapper for examples of how to supply a function for freeing an opaque handle.
Definition at line 312 of file Teuchos_OpaqueWrapper.hpp.
| Teuchos::OpaqueWrapperWithFree< Opaque, OpaqueFree >::OpaqueWrapperWithFree | ( | Opaque | opaque, |
| OpaqueFree | opaqueFree | ||
| ) | [inline] |
Constructor: takes the opaque handle, and its free function.
Definition at line 315 of file Teuchos_OpaqueWrapper.hpp.
| Teuchos::OpaqueWrapperWithFree< Opaque, OpaqueFree >::~OpaqueWrapperWithFree | ( | ) | [inline] |
Destructor: invokes the free function.
Definition at line 319 of file Teuchos_OpaqueWrapper.hpp.
1.7.6.1