Searched refs:scoped_ostream_redirect (Results 1 – 5 of 5) sorted by relevance
113 class scoped_ostream_redirect { in PYBIND11_NAMESPACE_END()120 scoped_ostream_redirect( in PYBIND11_NAMESPACE_END()127 ~scoped_ostream_redirect() { in PYBIND11_NAMESPACE_END()131 scoped_ostream_redirect(const scoped_ostream_redirect &) = delete; in PYBIND11_NAMESPACE_END()132 scoped_ostream_redirect(scoped_ostream_redirect &&other) = default; in PYBIND11_NAMESPACE_END()133 scoped_ostream_redirect &operator=(const scoped_ostream_redirect &) = delete; in PYBIND11_NAMESPACE_END()134 scoped_ostream_redirect &operator=(scoped_ostream_redirect &&) = delete; in PYBIND11_NAMESPACE_END()149 class scoped_estream_redirect : public scoped_ostream_redirect {154 : scoped_ostream_redirect(costream,pyostream) {} in scoped_ostream_redirect() function164 std::unique_ptr<scoped_ostream_redirect> redirect_stdout; in PYBIND11_NAMESPACE_BEGIN()[all …]
74 py::scoped_ostream_redirect redir; in TEST_SUBMODULE()79 py::scoped_ostream_redirect redir(std::cout, py::module_::import("sys").attr("stdout")); in TEST_SUBMODULE()84 py::call_guard<py::scoped_ostream_redirect>(), in TEST_SUBMODULE()88 py::scoped_ostream_redirect redir(std::cerr, py::module_::import("sys").attr("stderr")); in TEST_SUBMODULE()95 py::call_guard<py::scoped_ostream_redirect, py::scoped_estream_redirect>(), in TEST_SUBMODULE()107 py::scoped_ostream_redirect redirout(std::cout, py::module_::import("sys").attr("stdout")); in TEST_SUBMODULE()108 py::scoped_ostream_redirect redirerr(std::cerr, py::module_::import("sys").attr("stderr")); in TEST_SUBMODULE()
77 .. doxygenclass:: scoped_ostream_redirect
70 ``scoped_ostream_redirect``.915 ``py::call_guard<py::scoped_ostream_redirect>()``. See :ref:`call_policies` for details.919 ``sys.stdout``). Scope guard ``py::scoped_ostream_redirect`` in C++ and
43 py::scoped_ostream_redirect stream(62 py::call_guard<py::scoped_ostream_redirect,