#include <iostream>#include <string>#include <regex>#include <array>#include <set>#include <utility>#include <vector>#include <limits>#include <cmath>#include <stdio.h>#include <stddef.h>Go to the source code of this file.
Data Structures | |
| struct | ComparePairs |
Macros | |
| #define | max_line_length 500 |
| #define | max_num_lines 1000 |
| #define | max_code_length max_line_length *max_num_lines |
| #define | max_variable_length 100 |
Functions | |
| template<typename T> | |
| void | load_function (void *h, const std::string &func_name, T &func_ptr, bool &python_initialized) |
| KeywordPair | get_keyword_pair (const KeywordPairs &keywordPairs, size_t n) |
| #define max_code_length max_line_length *max_num_lines |
Definition at line 51 of file cpp_python_funct.h.
| #define max_line_length 500 |
Definition at line 48 of file cpp_python_funct.h.
| #define max_num_lines 1000 |
Definition at line 50 of file cpp_python_funct.h.
| #define max_variable_length 100 |
Definition at line 52 of file cpp_python_funct.h.
| using KeywordPair = std::pair<int, const char*> |
Definition at line 237 of file cpp_python_funct.h.
| using KeywordPairs = std::set<std::pair<int, const char*>, ComparePairs> |
Definition at line 247 of file cpp_python_funct.h.
| typedef ssize_t My_ssize_t |
Definition at line 45 of file cpp_python_funct.h.
| typedef void* PyObject |
Definition at line 56 of file cpp_python_funct.h.
| typedef void(* T_Py_DecRef) (PyObject *) |
Definition at line 70 of file cpp_python_funct.h.
| typedef void(* T_Py_Finalize) () |
Definition at line 64 of file cpp_python_funct.h.
| typedef void(* T_Py_IncRef) (PyObject *) |
Definition at line 71 of file cpp_python_funct.h.
| typedef void(* T_Py_Initialize) () |
Definition at line 63 of file cpp_python_funct.h.
| typedef int(* T_Py_IsInitialized) () |
Definition at line 77 of file cpp_python_funct.h.
| typedef int(* T_PyCallable_Check) (PyObject *) |
Definition at line 59 of file cpp_python_funct.h.
Definition at line 58 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyDict_New) () |
Definition at line 80 of file cpp_python_funct.h.
Definition at line 73 of file cpp_python_funct.h.
| typedef void(* T_PyErr_Clear) () |
Definition at line 82 of file cpp_python_funct.h.
Definition at line 75 of file cpp_python_funct.h.
Definition at line 74 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyErr_Occurred) () |
Definition at line 76 of file cpp_python_funct.h.
| typedef double(* T_PyFloat_AsDouble) (PyObject *) |
Definition at line 72 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyFloat_FromDouble) (double) |
Definition at line 61 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyImport_AddModule) (const char *) |
Definition at line 65 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyList_New) (My_ssize_t) |
Definition at line 81 of file cpp_python_funct.h.
| typedef int(* T_PyList_SetItem) (PyObject *, My_ssize_t, PyObject *) |
Definition at line 69 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyLong_FromLong) (long int) |
Definition at line 83 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyLong_FromVoidPtr) (void *) |
Definition at line 84 of file cpp_python_funct.h.
Definition at line 66 of file cpp_python_funct.h.
Definition at line 62 of file cpp_python_funct.h.
Definition at line 78 of file cpp_python_funct.h.
| typedef int(* T_PyRun_SimpleString) (const char *) |
Definition at line 67 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyTuple_New) (My_ssize_t) |
Definition at line 60 of file cpp_python_funct.h.
| typedef int(* T_PyTuple_SetItem) (PyObject *, My_ssize_t, PyObject *) |
Definition at line 68 of file cpp_python_funct.h.
| typedef const char *(* T_PyUnicode_AsUTF8) (PyObject *) |
Definition at line 79 of file cpp_python_funct.h.
| typedef PyObject *(* T_PyUnicode_FromString) (const char *) |
Definition at line 85 of file cpp_python_funct.h.
| KeywordPair get_keyword_pair | ( | const KeywordPairs & | keywordPairs, |
| size_t | n ) |
Definition at line 250 of file cpp_python_funct.h.
| void load_function | ( | void * | h, |
| const std::string & | func_name, | ||
| T & | func_ptr, | ||
| bool & | python_initialized ) |
Definition at line 104 of file cpp_python_funct.h.
|
constexpr |
Definition at line 145 of file cpp_python_funct.h.
| T_Py_DecRef My_DecRef |
Definition at line 128 of file cpp_python_funct.h.
| T_Py_Finalize My_Finalize |
Definition at line 117 of file cpp_python_funct.h.
| T_Py_IncRef My_IncRef |
Definition at line 129 of file cpp_python_funct.h.
| T_Py_Initialize My_Initialize |
Definition at line 116 of file cpp_python_funct.h.
| T_Py_IsInitialized My_IsInitialized |
Definition at line 135 of file cpp_python_funct.h.
| T_PyCallable_Check MyCallable_Check |
Definition at line 119 of file cpp_python_funct.h.
| T_PyDict_GetItemString MyDict_GetItemString |
Definition at line 118 of file cpp_python_funct.h.
| T_PyDict_New MyDict_New |
Definition at line 138 of file cpp_python_funct.h.
| T_PyDict_SetItemString MyDict_SetItemString |
Definition at line 131 of file cpp_python_funct.h.
| T_PyErr_Clear MyErr_Clear |
Definition at line 140 of file cpp_python_funct.h.
| T_PyErr_Display MyErr_Display |
Definition at line 133 of file cpp_python_funct.h.
| T_PyErr_Fetch MyErr_Fetch |
Definition at line 132 of file cpp_python_funct.h.
| T_PyErr_Occurred MyErr_Occurred |
Definition at line 134 of file cpp_python_funct.h.
| T_PyFloat_AsDouble MyFloat_AsDouble |
Definition at line 130 of file cpp_python_funct.h.
| T_PyFloat_FromDouble MyFloat_FromDouble |
Definition at line 121 of file cpp_python_funct.h.
| T_PyImport_AddModule MyImport_AddModule |
Definition at line 123 of file cpp_python_funct.h.
| T_PyList_New MyList_New |
Definition at line 139 of file cpp_python_funct.h.
| T_PyList_SetItem MyList_SetItem |
Definition at line 127 of file cpp_python_funct.h.
| T_PyLong_FromLong MyLong_FromLong |
Definition at line 141 of file cpp_python_funct.h.
| T_PyLong_FromVoidPtr MyLong_FromVoidPtr |
Definition at line 142 of file cpp_python_funct.h.
| T_PyModule_GetDict MyModule_GetDict |
Definition at line 124 of file cpp_python_funct.h.
| T_PyObject_CallObject MyObject_CallObject |
Definition at line 122 of file cpp_python_funct.h.
| T_PyObject_Str MyObject_Str |
Definition at line 136 of file cpp_python_funct.h.
| T_PyRun_SimpleString MyRun_SimpleString |
Definition at line 125 of file cpp_python_funct.h.
| T_PyTuple_New MyTuple_New |
Definition at line 120 of file cpp_python_funct.h.
| T_PyTuple_SetItem MyTuple_SetItem |
Definition at line 126 of file cpp_python_funct.h.
| T_PyUnicode_AsUTF8 MyUnicode_AsUTF8 |
Definition at line 137 of file cpp_python_funct.h.
| T_PyUnicode_FromString MyUnicode_FromString |
Definition at line 143 of file cpp_python_funct.h.
|
constexpr |
Definition at line 54 of file cpp_python_funct.h.