Information record describing a Python buffer object. More...
#include <buffer_info.h>
Classes | |
struct | private_ctr_tag |
Public Member Functions | |
buffer_info ()=default | |
buffer_info (void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, detail::any_container< ssize_t > shape_in, detail::any_container< ssize_t > strides_in, bool readonly=false) | |
template<typename T > | |
buffer_info (T *ptr, detail::any_container< ssize_t > shape_in, detail::any_container< ssize_t > strides_in, bool readonly=false) | |
buffer_info (void *ptr, ssize_t itemsize, const std::string &format, ssize_t size, bool readonly=false) | |
template<typename T > | |
buffer_info (T *ptr, ssize_t size, bool readonly=false) | |
template<typename T > | |
buffer_info (const T *ptr, ssize_t size, bool readonly=true) | |
buffer_info (Py_buffer *view, bool ownview=true) | |
buffer_info (const buffer_info &)=delete | |
buffer_info (buffer_info &&other) | |
buffer_info & | operator= (const buffer_info &)=delete |
buffer_info & | operator= (buffer_info &&rhs) |
Py_buffer * | view () const |
Py_buffer *& | view () |
~buffer_info () | |
Public Attributes | |
std::string | format |
ssize_t | itemsize = 0 |
ssize_t | ndim = 0 |
void * | ptr = nullptr |
bool | readonly = false |
std::vector< ssize_t > | shape |
ssize_t | size = 0 |
std::vector< ssize_t > | strides |
Private Member Functions | |
buffer_info (private_ctr_tag, void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, detail::any_container< ssize_t > &&shape_in, detail::any_container< ssize_t > &&strides_in, bool readonly) | |
Private Attributes | |
Py_buffer * | m_view = nullptr |
bool | ownview = false |
Information record describing a Python buffer object.
Definition at line 17 of file buffer_info.h.
|
default |
|
inline |
Definition at line 29 of file buffer_info.h.
|
inline |
Definition at line 40 of file buffer_info.h.
|
inline |
Definition at line 43 of file buffer_info.h.
|
inline |
Definition at line 47 of file buffer_info.h.
|
inline |
Definition at line 51 of file buffer_info.h.
|
inlineexplicit |
Definition at line 54 of file buffer_info.h.
|
delete |
|
inline |
Definition at line 64 of file buffer_info.h.
|
inline |
Definition at line 82 of file buffer_info.h.
|
inlineprivate |
Definition at line 91 of file buffer_info.h.
|
delete |
|
inline |
Definition at line 68 of file buffer_info.h.
|
inline |
Definition at line 86 of file buffer_info.h.
|
inline |
Definition at line 87 of file buffer_info.h.
std::string buffer_info::format |
Definition at line 21 of file buffer_info.h.
ssize_t buffer_info::itemsize = 0 |
Definition at line 19 of file buffer_info.h.
|
private |
Definition at line 95 of file buffer_info.h.
ssize_t buffer_info::ndim = 0 |
Definition at line 22 of file buffer_info.h.
|
private |
Definition at line 96 of file buffer_info.h.
void* buffer_info::ptr = nullptr |
Definition at line 18 of file buffer_info.h.
bool buffer_info::readonly = false |
Definition at line 25 of file buffer_info.h.
std::vector<ssize_t> buffer_info::shape |
Definition at line 23 of file buffer_info.h.
ssize_t buffer_info::size = 0 |
Definition at line 20 of file buffer_info.h.
std::vector<ssize_t> buffer_info::strides |
Definition at line 24 of file buffer_info.h.