Nektar++
Classes | Functions
SharedArray.cpp File Reference
#include <LibUtilities/BasicUtils/SharedArray.hpp>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <type_traits>

Go to the source code of this file.

Classes

struct  OneDArrayToPython< T >
 
struct  PythonToOneDArray< T >
 

Functions

template<typename T >
void CapsuleDestructor (PyObject *ptr)
 
template<typename T >
void export_SharedArray ()
 
template void export_SharedArray< double > ()
 

Function Documentation

◆ CapsuleDestructor()

template<typename T >
void CapsuleDestructor ( PyObject *  ptr)

Definition at line 52 of file SharedArray.cpp.

53 {
54  Array<OneD, T> *tmp = (Array<OneD, T> *)PyCapsule_GetPointer(ptr, 0);
55  delete tmp;
56 }

◆ export_SharedArray()

template<typename T >
void export_SharedArray ( )

Definition at line 209 of file SharedArray.cpp.

210 {
211  py::to_python_converter<Array<OneD, const T>, OneDArrayToPython<const T> >();
212  py::to_python_converter<Array<OneD, T>, OneDArrayToPython<T> >();
213 
216 }

◆ export_SharedArray< double >()

template void export_SharedArray< double > ( )

Referenced by BOOST_PYTHON_MODULE().