LvArray
Classes | Namespaces | Functions
PyArrayOfArrays.hpp File Reference
#include "pythonForwardDeclarations.hpp"
#include "numpyHelpers.hpp"
#include "../ArrayOfArrays.hpp"
#include "../Macros.hpp"
#include "../limits.hpp"
#include "../output.hpp"
#include <string>
#include <memory>
#include <typeindex>
Include dependency graph for PyArrayOfArrays.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LvArray::python::internal::PyArrayOfArraysWrapperBase
 Provides a virtual Python wrapper around an ArrayOfArrays. More...
 
class  LvArray::python::internal::PyArrayOfArraysWrapper< T, INDEX_TYPE, BUFFER_TYPE >
 Provides a concrete implementation of PyArrayOfArraysWrapperBase. More...
 

Namespaces

 LvArray
 The top level namespace.
 
 LvArray::python
 Contains all the Python code.
 

Functions

PyObject * LvArray::python::internal::create (std::unique_ptr< internal::PyArrayOfArraysWrapperBase > &&arrayOfArrays)
 Create a Python object corresponding to arrayOfArrays. More...
 
template<typename T , typename INDEX_TYPE , template< typename > class BUFFER_TYPE>
std::enable_if_t< internal::canExportToNumpy< T >, PyObject *> LvArray::python::create (ArrayOfArrays< T, INDEX_TYPE, BUFFER_TYPE > &arrayOfArrays)
 Create a Python object corresponding to arrayOfArrays. More...
 
PyTypeObject * LvArray::python::getPyArrayOfArraysType ()
 Return the Python type object for the ArrayOfArrays. More...
 

Function Documentation

◆ create()

PyObject* LvArray::python::internal::create ( std::unique_ptr< internal::PyArrayOfArraysWrapperBase > &&  arrayOfArrays)

Create a Python object corresponding to arrayOfArrays.

Parameters
arrayOfArraysThe ArrayOfArrays to export to Python.
Returns
A Python object corresponding to arrayOfArrays.