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 50 of file SharedArray.cpp.

51{
52 Array<OneD, T> *tmp = (Array<OneD, T> *)PyCapsule_GetPointer(ptr, nullptr);
53 delete tmp;
54}

◆ export_SharedArray()

template<typename T >
void export_SharedArray ( )

Definition at line 201 of file SharedArray.cpp.

202{
203 py::to_python_converter<Array<OneD, const T>, OneDArrayToPython<const T>>();
204 py::to_python_converter<Array<OneD, T>, OneDArrayToPython<T>>();
205
208}

◆ export_SharedArray< double >()

template void export_SharedArray< double > ( )

Referenced by BOOST_PYTHON_MODULE().