dlvhex
2.5.0
|
Special library deleter to be used with boost smart pointers. More...
#include <include/dlvhex2/PluginInterface.h>
Public Member Functions | |
PluginPtrNOPDeleter () | |
void | operator() (const AllocatedT *ptr) const |
Deleter for plugins without actual functionality. |
Special library deleter to be used with boost smart pointers.
This class should be used as a "deleter" for boost::shared_ptr if the library returning the pointer wants to return a statically linked object (i.e., do not free) [this is used for all PluginInterface pointers, as this pointer is returned as a POD type via an extern "C" function]
You will not need to care about this unless you get segmentation faults when dlvhex shuts down.
Definition at line 1535 of file PluginInterface.h.
PluginPtrNOPDeleter< AllocatedT >::PluginPtrNOPDeleter | ( | ) | [inline] |
Definition at line 1537 of file PluginInterface.h.
void PluginPtrNOPDeleter< AllocatedT >::operator() | ( | const AllocatedT * | ptr | ) | const [inline] |
Deleter for plugins without actual functionality.
ptr | Pointer to the plugin |
Definition at line 1542 of file PluginInterface.h.