LvArray
Classes | Namespaces | Functions
PyArrayOfSets.hpp File Reference
#include "pythonForwardDeclarations.hpp"
#include "numpyHelpers.hpp"
#include "../ArrayOfSets.hpp"
#include "../Macros.hpp"
#include "../limits.hpp"
#include "../output.hpp"
#include <string>
#include <memory>
#include <typeindex>
Include dependency graph for PyArrayOfSets.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::PyArrayOfSetsWrapperBase
 Provides a virtual Python wrapper around an ArrayOfSets. More...
 
class  LvArray::python::internal::PyArrayOfSetsWrapper< T, INDEX_TYPE, BUFFER_TYPE >
 Provides a concrete implementation of PyArrayOfSetsWrapperBase. More...
 

Namespaces

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

Functions

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

Function Documentation

◆ create()

PyObject* LvArray::python::internal::create ( std::unique_ptr< internal::PyArrayOfSetsWrapperBase > &&  arrayOfSets)

Create a Python object corresponding to arrayOfSets.

Parameters
arrayOfSetsThe ArrayOfSets to export to Python.
Returns
A Python object corresponding to arrayOfSets.