Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Mantid::PythonInterface::GILSharedPtrDeleter Struct Reference

Special shared_ptr::deleter object that locks the GIL while deleting the underlying Python object. More...

#include <PythonObjectInstantiator.h>

Public Member Functions

 GILSharedPtrDeleter (const boost::python::converter::shared_ptr_deleter &deleter)
 
void operator() (void const *data)
 Called when the shared_ptr reference count is zero. More...
 

Public Attributes

boost::python::converter::shared_ptr_deleter m_deleter
 Main deleter object. More...
 

Detailed Description

Special shared_ptr::deleter object that locks the GIL while deleting the underlying Python object.

Definition at line 27 of file PythonObjectInstantiator.h.

Constructor & Destructor Documentation

◆ GILSharedPtrDeleter()

Mantid::PythonInterface::GILSharedPtrDeleter::GILSharedPtrDeleter ( const boost::python::converter::shared_ptr_deleter &  deleter)
inline

Definition at line 28 of file PythonObjectInstantiator.h.

Member Function Documentation

◆ operator()()

void Mantid::PythonInterface::GILSharedPtrDeleter::operator() ( void const *  data)
inline

Called when the shared_ptr reference count is zero.

Parameters
dataA pointer to the data to be deleted

Definition at line 34 of file PythonObjectInstantiator.h.

References m_deleter.

Member Data Documentation

◆ m_deleter

boost::python::converter::shared_ptr_deleter Mantid::PythonInterface::GILSharedPtrDeleter::m_deleter

Main deleter object.

Definition at line 39 of file PythonObjectInstantiator.h.

Referenced by operator()().


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