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

/gem5/ext/pybind11/tests/
H A Dpybind11_tests.h43 class IncType : public UserType { class in inherits:UserType
46 IncType() = default;
47 IncType(const IncType &other) : IncType(other.value() + 1) { } function in class:IncType
48 IncType(IncType &&) = delete;
49 IncType &operator=(const IncType &) = delete;
50 IncType
[all...]
H A Dpybind11_tests.cpp84 py::class_<IncType, UserType>(m, "IncType")
87 .def("__repr__", [](const IncType& u) { return "IncType({})"_s.format(u.value()); });
H A Dtest_builtin_casters.cpp133 static IncType x1(1), x2(2);
142 m.def("refwrap_iiw", [](const IncType &w) { return w.value(); });
143 m.def("refwrap_call_iiw", [](IncType &w, py::function f) {
147 IncType x(w.value());
149 IncType y(w.value());
H A Dtest_builtin_casters.py5 from pybind11_tests import UserType, IncType
263 assert m.refwrap_iiw(IncType(5)) == 5
264 assert m.refwrap_call_iiw(IncType(10), m.refwrap_iiw) == [10, 10, 10, 10]

Completed in 7 milliseconds