Searched refs:buffer_protocol (Results 1 – 9 of 9) sorted by relevance
/external/python/pybind11/tests/ |
D | test_buffers.cpp | 79 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()
|
D | test_stl_binders.cpp | 67 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/ |
D | attr.h | 58 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; }
|
D | stl_bind.h | 383 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/ |
D | numpy.rst | 36 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/ |
D | class.h | 684 if (rec.buffer_protocol) in make_new_python_type()
|
/external/python/pybind11/docs/ |
D | upgrade.rst | 413 now include the ``py::buffer_protocol()`` annotation as an argument to 418 py::class_<Matrix>("Matrix", py::buffer_protocol())
|
D | changelog.rst | 1304 now include the ``py::buffer_protocol()`` annotation as an argument to
|
/external/llvm-project/mlir/lib/Bindings/Python/ |
D | IRModules.cpp | 1455 auto cls = ClassTy(m, DerivedTy::pyClassName, py::buffer_protocol()); in bind()
|