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

Namespaces

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

Functions

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

Function Documentation

◆ create()

PyObject* LvArray::python::internal::create ( std::unique_ptr< internal::PySortedArrayWrapperBase > &&  sortedArray)

Create a Python object corresponding to sortedArray.

Parameters
sortedArrayThe SortedArray to export to Python.
Returns
A Python object corresponding to sortedArray.