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

/gem5/ext/pybind11/tests/
H A Dtest_stl_binders.cpp102 struct VStruct { bool w; uint32_t x; double y; bool z; }; struct
103 PYBIND11_NUMPY_DTYPE(VStruct, w, x, y, z);
104 py::class_<VStruct>(m, "VStruct").def_readwrite("x", &VStruct::x);
105 py::bind_vector<std::vector<VStruct>>(m, "VectorStruct", py::buffer_protocol());
106 m.def("get_vectorstruct", [] {return std::vector<VStruct> {{0, 5, 3.0, 1}, {1, 30, -1e4, 0}};});

Completed in 2 milliseconds