Adds asio library and Storage Module

This commit is contained in:
Suraxius committed 2020-12-01 22:41:04 +01:00
1 parent 79a6ee5779
commit 30439acd43
4869 files changed
+618801 -903

No files matched your search

@@ -0,0 +1,57 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::basic_yield_context</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context">
<link rel="prev" href="../basic_yield_context.html" title="basic_yield_context">
<link rel="next" href="basic_yield_context/overload1.html" title="basic_yield_context::basic_yield_context (1 of 2 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_yield_context.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_yield_context/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.basic_yield_context.basic_yield_context"></a><a class="link" href="basic_yield_context.html" title="basic_yield_context::basic_yield_context">basic_yield_context::basic_yield_context</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.basic_yield_context.basic_yield_context"></a>
Construct
a yield context to represent the specified coroutine.
</p>
<pre class="programlisting"><a class="link" href="basic_yield_context/overload1.html" title="basic_yield_context::basic_yield_context (1 of 2 overloads)">basic_yield_context</a>(
const detail::weak_ptr&lt; callee_type &gt; &amp; coro,
caller_type &amp; ca,
Handler &amp; handler);
<span class="emphasis"><em>» <a class="link" href="basic_yield_context/overload1.html" title="basic_yield_context::basic_yield_context (1 of 2 overloads)">more...</a></em></span>
</pre>
<p>
Construct a yield context from another yield context type.
</p>
<pre class="programlisting">template&lt;
typename OtherHandler&gt;
<a class="link" href="basic_yield_context/overload2.html" title="basic_yield_context::basic_yield_context (2 of 2 overloads)">basic_yield_context</a>(
const basic_yield_context&lt; OtherHandler &gt; &amp; other);
<span class="emphasis"><em>» <a class="link" href="basic_yield_context/overload2.html" title="basic_yield_context::basic_yield_context (2 of 2 overloads)">more...</a></em></span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_yield_context.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_yield_context/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,51 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::basic_yield_context (1 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context::basic_yield_context">
<link rel="prev" href="../basic_yield_context.html" title="basic_yield_context::basic_yield_context">
<link rel="next" href="overload2.html" title="basic_yield_context::basic_yield_context (2 of 2 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_yield_context.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="asio.reference.basic_yield_context.basic_yield_context.overload1"></a><a class="link" href="overload1.html" title="basic_yield_context::basic_yield_context (1 of 2 overloads)">basic_yield_context::basic_yield_context
(1 of 2 overloads)</a>
</h5></div></div></div>
<p>
Construct a yield context to represent the specified coroutine.
</p>
<pre class="programlisting">basic_yield_context(
const detail::weak_ptr&lt; callee_type &gt; &amp; coro,
caller_type &amp; ca,
Handler &amp; handler);
</pre>
<p>
Most applications do not need to use this constructor. Instead, the
<code class="computeroutput">spawn()</code> function passes a yield context as an argument to
the coroutine function.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../basic_yield_context.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,49 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::basic_yield_context (2 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context::basic_yield_context">
<link rel="prev" href="overload1.html" title="basic_yield_context::basic_yield_context (1 of 2 overloads)">
<link rel="next" href="../callee_type.html" title="basic_yield_context::callee_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../callee_type.html"><img src="../../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="asio.reference.basic_yield_context.basic_yield_context.overload2"></a><a class="link" href="overload2.html" title="basic_yield_context::basic_yield_context (2 of 2 overloads)">basic_yield_context::basic_yield_context
(2 of 2 overloads)</a>
</h5></div></div></div>
<p>
Construct a yield context from another yield context type.
</p>
<pre class="programlisting">template&lt;
typename OtherHandler&gt;
basic_yield_context(
const basic_yield_context&lt; OtherHandler &gt; &amp; other);
</pre>
<p>
Requires that OtherHandler be convertible to Handler.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../callee_type.html"><img src="../../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,64 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::callee_type</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context">
<link rel="prev" href="basic_yield_context/overload2.html" title="basic_yield_context::basic_yield_context (2 of 2 overloads)">
<link rel="next" href="caller_type.html" title="basic_yield_context::caller_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="basic_yield_context/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="caller_type.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.basic_yield_context.callee_type"></a><a class="link" href="callee_type.html" title="basic_yield_context::callee_type">basic_yield_context::callee_type</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.basic_yield_context.callee_type"></a>
The
coroutine callee type, used by the implementation.
</p>
<pre class="programlisting">typedef implementation_defined callee_type;
</pre>
<p>
When using Boost.Coroutine v1, this type is:
</p>
<pre class="programlisting">typename coroutine&lt;void()&gt;
</pre>
<p>
When using Boost.Coroutine v2 (unidirectional coroutines), this type is:
</p>
<pre class="programlisting">push_coroutine&lt;void&gt;
</pre>
<h6>
<a name="asio.reference.basic_yield_context.callee_type.h0"></a>
<span><a name="asio.reference.basic_yield_context.callee_type.requirements"></a></span><a class="link" href="callee_type.html#asio.reference.basic_yield_context.callee_type.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/spawn.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span>None
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="basic_yield_context/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="caller_type.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,64 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::caller_type</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context">
<link rel="prev" href="callee_type.html" title="basic_yield_context::callee_type">
<link rel="next" href="operator_lb__rb_.html" title="basic_yield_context::operator[]">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="callee_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="operator_lb__rb_.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.basic_yield_context.caller_type"></a><a class="link" href="caller_type.html" title="basic_yield_context::caller_type">basic_yield_context::caller_type</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.basic_yield_context.caller_type"></a>
The
coroutine caller type, used by the implementation.
</p>
<pre class="programlisting">typedef implementation_defined caller_type;
</pre>
<p>
When using Boost.Coroutine v1, this type is:
</p>
<pre class="programlisting">typename coroutine&lt;void()&gt;::caller_type
</pre>
<p>
When using Boost.Coroutine v2 (unidirectional coroutines), this type is:
</p>
<pre class="programlisting">pull_coroutine&lt;void&gt;
</pre>
<h6>
<a name="asio.reference.basic_yield_context.caller_type.h0"></a>
<span><a name="asio.reference.basic_yield_context.caller_type.requirements"></a></span><a class="link" href="caller_type.html#asio.reference.basic_yield_context.caller_type.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/spawn.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span>None
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="callee_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="operator_lb__rb_.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,65 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_yield_context::operator[]</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../basic_yield_context.html" title="basic_yield_context">
<link rel="prev" href="caller_type.html" title="basic_yield_context::caller_type">
<link rel="next" href="../bind_executor.html" title="bind_executor">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="caller_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../bind_executor.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.basic_yield_context.operator_lb__rb_"></a><a class="link" href="operator_lb__rb_.html" title="basic_yield_context::operator[]">basic_yield_context::operator[]</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.basic_yield_context.operator_lb__rb_"></a>
Return
a yield context that sets the specified <a class="link" href="../error_code.html" title="error_code"><code class="computeroutput">error_code</code></a>.
</p>
<pre class="programlisting">basic_yield_context operator[](
asio::error_code &amp; ec) const;
</pre>
<p>
By default, when a yield context is used with an asynchronous operation,
a non-success <a class="link" href="../error_code.html" title="error_code"><code class="computeroutput">error_code</code></a>
is converted to <a class="link" href="../system_error.html" title="system_error"><code class="computeroutput">system_error</code></a>
and thrown. This operator may be used to specify an <a class="link" href="../error_code.html" title="error_code"><code class="computeroutput">error_code</code></a>
object that should instead be set with the asynchronous operation's result.
For example:
</p>
<pre class="programlisting">template &lt;typename Handler&gt;
void my_coroutine(basic_yield_context&lt;Handler&gt; yield)
{
...
std::size_t n = my_socket.async_read_some(buffer, yield[ec]);
if (ec)
{
// An error occurred.
}
...
}
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="caller_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_yield_context.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../bind_executor.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>