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

/gem5/ext/pybind11/tests/
H A Dtest_virtual_functions.cpp285 virtual std::string str_value() { return v; } function in class:OverrideTest
295 std::string str_value() override { PYBIND11_OVERLOAD(std::string, OverrideTest, str_value); }
314 .def("str_value", &OverrideTest::str_value)
H A Dtest_virtual_functions.py236 assert o.str_value() == "asdf"
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h935 PyObject *str_value = PyObject_Str(op); local
937 if (!str_value) throw error_already_set();
938 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);
939 Py_XDECREF(str_value); str_value = unicode;
941 return str_value;
1385 PyObject *str_value = PyObject_Repr(h.ptr()); local
1386 if (!str_value) throw error_already_set();
1388 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);
1389 Py_XDECREF(str_value); str_valu
[all...]

Completed in 14 milliseconds