Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_stl_binders.cpp124 struct VStruct { bool w; uint32_t x; double y; bool z; }; in TEST_SUBMODULE() argument
125 PYBIND11_NUMPY_DTYPE(VStruct, w, x, y, z); in TEST_SUBMODULE()
126 py::class_<VStruct>(m, "VStruct").def_readwrite("x", &VStruct::x); in TEST_SUBMODULE()
127 py::bind_vector<std::vector<VStruct>>(m, "VectorStruct", py::buffer_protocol()); in TEST_SUBMODULE()
128 m.def("get_vectorstruct", [] {return std::vector<VStruct> {{0, 5, 3.0, 1}, {1, 30, -1e4, 0}};}); in TEST_SUBMODULE()