Home
last modified time | relevance | path

Searched refs:scoped_ostream_redirect (Results 1 – 5 of 5) sorted by relevance

/external/python/pybind11/include/pybind11/
Diostream.h113 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() function
164 std::unique_ptr<scoped_ostream_redirect> redirect_stdout; in PYBIND11_NAMESPACE_BEGIN()
[all …]
/external/python/pybind11/tests/
Dtest_iostream.cpp74 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()
/external/python/pybind11/docs/
Dreference.rst77 .. doxygenclass:: scoped_ostream_redirect
Dchangelog.rst70 ``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
/external/python/pybind11/docs/advanced/pycpp/
Dutilities.rst43 py::scoped_ostream_redirect stream(
62 py::call_guard<py::scoped_ostream_redirect,