Searched refs:cpp_function (Results 1 - 6 of 6) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_eval.cpp | 21 local["call_test"] = py::cpp_function([&]() -> int { 54 local["call_test"] = py::cpp_function([&]() -> int { 68 local["call_test2"] = py::cpp_function([&](int value) { val_out = value; });
|
H A D | test_methods_and_attributes.cpp | 325 .def_property_readonly("ro_func", py::cpp_function(&TestPropRVP::get2, rvp_copy)) 328 .def_property("rw_func", py::cpp_function(&TestPropRVP::get2, rvp_copy), &TestPropRVP::set2) 331 .def_property_readonly_static("static_ro_func", py::cpp_function(static_get2, rvp_copy)) 334 .def_property_static("static_rw_func", py::cpp_function(static_get2, rvp_copy), static_set2)
|
H A D | test_callbacks.cpp | 26 return py::cpp_function([](int i) { return i+1; }, py::arg("number"));
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | functional.h | 45 if (auto cfunc = func.cpp_function()) { 91 return cpp_function(*result, policy).release(); 93 return cpp_function(std::forward<Func>(f_), policy).release();
|
H A D | pybind11.h | 56 class cpp_function : public function { class in inherits:function 58 cpp_function() { } function in class:cpp_function 59 cpp_function(std::nullptr_t) { } function in class:cpp_function 61 /// Construct a cpp_function from a vanilla function pointer 63 cpp_function(Return (*f)(Args...), const Extra&... extra) { function in class:cpp_function 67 /// Construct a cpp_function from a lambda function (possibly with internal state) 70 cpp_function(Func &&f, const Extra&... extra) { function in class:cpp_function 75 /// Construct a cpp_function from a class method (non-const) 77 cpp_function(Return (Class::*f)(Arg...), const Extra&... extra) { 82 /// Construct a cpp_function fro [all...] |
H A D | pytypes.h | 1297 handle cpp_function() const { function in class:function 1303 bool is_cpp_function() const { return (bool) cpp_function(); }
|
Completed in 20 milliseconds