Home
last modified time | relevance | path

Searched refs:buffer_protocol (Results 1 – 9 of 9) sorted by relevance

/external/python/pybind11/tests/
Dtest_buffers.cpp79 py::class_<Matrix>(m, "Matrix", py::buffer_protocol()) in TEST_SUBMODULE()
139 py::class_<Buffer>(m, "Buffer", py::buffer_protocol()) in TEST_SUBMODULE()
159 py::class_<ConstBuffer>(m, "ConstBuffer", py::buffer_protocol()) in TEST_SUBMODULE()
165 py::class_<DerivedBuffer>(m, "DerivedBuffer", py::buffer_protocol()) in TEST_SUBMODULE()
178 py::class_<BufferReadOnly>(m, "BufferReadOnly", py::buffer_protocol()) in TEST_SUBMODULE()
190 py::class_<BufferReadOnlySelect>(m, "BufferReadOnlySelect", py::buffer_protocol()) in TEST_SUBMODULE()
Dtest_stl_binders.cpp67 py::bind_vector<std::vector<unsigned int>>(m, "VectorInt", py::buffer_protocol()); in TEST_SUBMODULE()
112 py::bind_vector<std::vector<unsigned char>>(m, "VectorUChar", py::buffer_protocol()); in TEST_SUBMODULE()
116 py::bind_vector<std::vector<VUndeclStruct>>(m, "VectorUndeclStruct", py::buffer_protocol()); in TEST_SUBMODULE()
127 py::bind_vector<std::vector<VStruct>>(m, "VectorStruct", py::buffer_protocol()); in TEST_SUBMODULE()
/external/python/pybind11/include/pybind11/
Dattr.h58 struct buffer_protocol { }; struct
223 : multiple_inheritance(false), dynamic_attr(false), buffer_protocol(false),
269 bool buffer_protocol : 1;
472 struct process_attribute<buffer_protocol> : process_attribute_default<buffer_protocol> {
473 static void init(const buffer_protocol &, type_record *r) { r->buffer_protocol = true; }
Dstl_bind.h383 return detail::any_of<std::is_same<Args, buffer_protocol>...>::value;
433 …buffer_impl<Vector, Class_, Args...>(cl, detail::any_of<std::is_same<Args, buffer_protocol>...>{});
/external/python/pybind11/docs/advanced/pycpp/
Dnumpy.rst36 py::class_<Matrix>(m, "Matrix", py::buffer_protocol())
50 ``py::buffer_protocol()`` tag in the ``py::class_`` constructor and calling the
83 py::class_<Matrix>(m, "Matrix", py::buffer_protocol())
/external/python/pybind11/include/pybind11/detail/
Dclass.h684 if (rec.buffer_protocol) in make_new_python_type()
/external/python/pybind11/docs/
Dupgrade.rst413 now include the ``py::buffer_protocol()`` annotation as an argument to
418 py::class_<Matrix>("Matrix", py::buffer_protocol())
Dchangelog.rst1304 now include the ``py::buffer_protocol()`` annotation as an argument to
/external/llvm-project/mlir/lib/Bindings/Python/
DIRModules.cpp1455 auto cls = ClassTy(m, DerivedTy::pyClassName, py::buffer_protocol()); in bind()