LvArray
Classes | Namespaces | Functions
PyFunc.hpp File Reference
#include "pythonForwardDeclarations.hpp"
#include "numpyHelpers.hpp"
#include "PySortedArray.hpp"
#include "pythonHelpers.hpp"
#include "../typeManipulation.hpp"
Include dependency graph for PyFunc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LvArray::python::PythonFunction< ARGS >
 A C++ functor wrapper around a Python function. More...
 

Namespaces

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

Functions

bool LvArray::python::internal::err ()
 Return true iff a Python exception has been set. More...
 
void LvArray::python::internal::callPyFunc (PyObject *func, PyObjectRef<> *args, long long const argc)
 Call the Python function func. More...
 

Function Documentation

◆ callPyFunc()

void LvArray::python::internal::callPyFunc ( PyObject *  func,
PyObjectRef<> *  args,
long long const  argc 
)

Call the Python function func.

Parameters
funcThe Python function to call.
argsThe arguments to call the function with, must be of length argc. These references are stolen and invalid after this call.
argcThe number of arguments to call the function with.

◆ err()

bool LvArray::python::internal::err ( )

Return true iff a Python exception has been set.

Returns
true iff a Python exception has been set.