#include "CPyCppyy.h"#include "LowLevelViews.h"#include "Converters.h"#include "CustomPyTypes.h"#include "PyStrings.h"#include <map>#include <assert.h>#include <string.h>#include <limits.h>Namespaces | |
| namespace | CPyCppyy |
Macros | |
| #define | ADJUST_PTR(ptr, suboffsets, dim) |
| #define | CPPYY_IMPL_VIEW_CREATOR(type) |
| #define | CPPYY_RET_W_CREATOR(type, fname) |
| #define | CPYCPPYY_LL_FLAG_GETSET(name, flag, doc) |
| #define | HAVE_PTR(suboffsets, dim) |
| #define | HAVE_SUBOFFSETS_IN_LAST_DIM(view) |
Functions | |
| static void | copy_base (const Py_ssize_t *shape, Py_ssize_t itemsize, char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, char *sptr, const Py_ssize_t *sstrides, const Py_ssize_t *ssuboffsets, char *mem) |
| static int | copy_single (Py_buffer *dest, Py_buffer *src) |
| template<typename T> | |
| static CPyCppyy::LowLevelView * | CreateLowLevelViewT (T **address, CPyCppyy::cdims_t shape, const char *format=nullptr, const char *name=nullptr) |
| template<typename T> | |
| static CPyCppyy::LowLevelView * | CreateLowLevelViewT (T *address, CPyCppyy::cdims_t shape, const char *format=nullptr, const char *name=nullptr, Py_ssize_t itemsize=-1) |
| static bool | equiv_shape (const Py_buffer *dest, const Py_buffer *src) |
| static bool | equiv_structure (const Py_buffer *dest, const Py_buffer *src) |
| static int | init_slice (Py_buffer *base, PyObject *_key, int dim) |
| static Py_ssize_t | is_multiindex (PyObject *key) |
| static bool | is_multislice (PyObject *key) |
| static int | last_dim_is_contiguous (const Py_buffer *dest, const Py_buffer *src) |
| static PyObject * | ll_array (CPyCppyy::LowLevelView *self, PyObject *args, PyObject *kwds) |
| static PyObject * | ll_as_string (CPyCppyy::LowLevelView *self) |
| static int | ll_ass_sub (CPyCppyy::LowLevelView *self, PyObject *key, PyObject *value) |
| static void | ll_dealloc (CPyCppyy::LowLevelView *pyobj) |
| static int | ll_getbuf (CPyCppyy::LowLevelView *self, Py_buffer *view, int flags) |
| static PyObject * | ll_getcpparray (CPyCppyy::LowLevelView *pyobj) |
| static PyObject * | ll_getownership (CPyCppyy::LowLevelView *pyobj) |
| static Py_ssize_t | ll_getsegcount (PyObject *, Py_ssize_t *lenp) |
| static PyObject * | ll_item (CPyCppyy::LowLevelView *self, Py_ssize_t index) |
| static PyObject * | ll_item_multi (CPyCppyy::LowLevelView *self, PyObject *tup) |
| static PyObject * | ll_iter (PyObject *self) |
| static Py_ssize_t | ll_length (CPyCppyy::LowLevelView *self) |
| static CPyCppyy::LowLevelView * | ll_new (PyTypeObject *subtype, PyObject *, PyObject *) |
| static Py_ssize_t | ll_oldgetbuf (CPyCppyy::LowLevelView *self, Py_ssize_t seg, void **pptr) |
| static PyObject * | ll_reshape (CPyCppyy::LowLevelView *self, PyObject *shape) |
| static int | ll_setcpparray (CPyCppyy::LowLevelView *pyobj, PyObject *value, void *) |
| static int | ll_setownership (CPyCppyy::LowLevelView *pyobj, PyObject *value, void *) |
| static PyObject * | ll_shape (CPyCppyy::LowLevelView *self) |
| static PyObject * | ll_subscript (CPyCppyy::LowLevelView *self, PyObject *key) |
| static PyObject * | ll_typecode (CPyCppyy::LowLevelView *self, void *) |
| static char * | lookup_dimension (Py_buffer &view, char *ptr, int dim, Py_ssize_t index) |
| static void * | ptr_from_index (CPyCppyy::LowLevelView *llview, Py_ssize_t index) |
| static void * | ptr_from_tuple (CPyCppyy::LowLevelView *llview, PyObject *tup) |
| static void | set_strides (Py_buffer &view, size_t itemsize, bool isfix) |
Variables | |
| static PyBufferProcs | ll_as_buffer |
| static PyMappingMethods | ll_as_mapping |
| static PySequenceMethods | ll_as_sequence |
| static PyGetSetDef | ll_getset [] |
| static PyMethodDef | ll_methods [] |
| PyTypeObject | CPyCppyy::LowLevelView_Type |
| #define ADJUST_PTR | ( | ptr, | |
| suboffsets, | |||
| dim ) |
Definition at line 122 of file LowLevelViews.cxx.
| #define CPPYY_IMPL_VIEW_CREATOR | ( | type | ) |
Definition at line 1131 of file LowLevelViews.cxx.
| #define CPPYY_RET_W_CREATOR | ( | type, | |
| fname ) |
Definition at line 1126 of file LowLevelViews.cxx.
| #define CPYCPPYY_LL_FLAG_GETSET | ( | name, | |
| flag, | |||
| doc ) |
Definition at line 81 of file LowLevelViews.cxx.
| #define HAVE_PTR | ( | suboffsets, | |
| dim ) |
Definition at line 120 of file LowLevelViews.cxx.
| #define HAVE_SUBOFFSETS_IN_LAST_DIM | ( | view | ) |
Definition at line 127 of file LowLevelViews.cxx.
|
static |
Definition at line 175 of file LowLevelViews.cxx.
|
static |
Definition at line 206 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 1116 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 1059 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 141 of file LowLevelViews.cxx.
|
static |
Definition at line 160 of file LowLevelViews.cxx.
Definition at line 322 of file LowLevelViews.cxx.
|
static |
Definition at line 372 of file LowLevelViews.cxx.
Definition at line 354 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 131 of file LowLevelViews.cxx.
|
static |
Definition at line 820 of file LowLevelViews.cxx.
|
static |
Definition at line 880 of file LowLevelViews.cxx.
|
static |
Definition at line 517 of file LowLevelViews.cxx.
|
static |
Definition at line 57 of file LowLevelViews.cxx.
|
static |
Definition at line 635 of file LowLevelViews.cxx.
|
static |
Definition at line 104 of file LowLevelViews.cxx.
|
static |
Definition at line 103 of file LowLevelViews.cxx.
|
static |
Definition at line 627 of file LowLevelViews.cxx.
|
static |
Definition at line 391 of file LowLevelViews.cxx.
|
static |
Definition at line 418 of file LowLevelViews.cxx.
Definition at line 681 of file LowLevelViews.cxx.
|
static |
Definition at line 314 of file LowLevelViews.cxx.
|
static |
Definition at line 40 of file LowLevelViews.cxx.
|
static |
Definition at line 615 of file LowLevelViews.cxx.
|
static |
Definition at line 749 of file LowLevelViews.cxx.
|
static |
Definition at line 104 of file LowLevelViews.cxx.
|
static |
Definition at line 103 of file LowLevelViews.cxx.
|
static |
Definition at line 737 of file LowLevelViews.cxx.
|
static |
Definition at line 444 of file LowLevelViews.cxx.
|
static |
Definition at line 107 of file LowLevelViews.cxx.
|
static |
Definition at line 237 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 275 of file LowLevelViews.cxx.
|
static |
Definition at line 283 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 24 of file LowLevelViews.cxx.
|
static |
Definition at line 723 of file LowLevelViews.cxx.
|
static |
Definition at line 702 of file LowLevelViews.cxx.
|
static |
Definition at line 709 of file LowLevelViews.cxx.
|
static |
Definition at line 909 of file LowLevelViews.cxx.
|
static |
Definition at line 898 of file LowLevelViews.cxx.