Files
entt/classentt_1_1process.html
2021-01-09 18:58:42 +01:00

521 lines
27 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: entt::process&lt; Derived, Delta &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">EnTT
&#160;<span id="projectnumber">3.6.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceentt.html">entt</a></li><li class="navelem"><a class="el" href="classentt_1_1process.html">process</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classentt_1_1process-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">entt::process&lt; Derived, Delta &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Base class for processes.
<a href="classentt_1_1process.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="process_8hpp_source.html">process.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a625b574ea6d83e3a4933acc3d0279295"><td class="memItemLeft" align="right" valign="top"><a id="a625b574ea6d83e3a4933acc3d0279295"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a625b574ea6d83e3a4933acc3d0279295">delta_type</a> = Delta</td></tr>
<tr class="memdesc:a625b574ea6d83e3a4933acc3d0279295"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type used to provide elapsed time. <br /></td></tr>
<tr class="separator:a625b574ea6d83e3a4933acc3d0279295"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2baf1b6aef37c1420a77cd3f8eadcf79"><td class="memItemLeft" align="right" valign="top"><a id="a2baf1b6aef37c1420a77cd3f8eadcf79"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a2baf1b6aef37c1420a77cd3f8eadcf79">~process</a> ()</td></tr>
<tr class="memdesc:a2baf1b6aef37c1420a77cd3f8eadcf79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor. <br /></td></tr>
<tr class="separator:a2baf1b6aef37c1420a77cd3f8eadcf79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af27d28af408f1dfb260b8fe976e66ea3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#af27d28af408f1dfb260b8fe976e66ea3">abort</a> (const bool immediately=false)</td></tr>
<tr class="memdesc:af27d28af408f1dfb260b8fe976e66ea3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aborts a process if it's still alive. <a href="classentt_1_1process.html#af27d28af408f1dfb260b8fe976e66ea3">More...</a><br /></td></tr>
<tr class="separator:af27d28af408f1dfb260b8fe976e66ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacb0108ddb7ee68eac145c092b4e4163"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#aacb0108ddb7ee68eac145c092b4e4163">alive</a> () const noexcept</td></tr>
<tr class="memdesc:aacb0108ddb7ee68eac145c092b4e4163"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a process is either running or paused. <a href="classentt_1_1process.html#aacb0108ddb7ee68eac145c092b4e4163">More...</a><br /></td></tr>
<tr class="separator:aacb0108ddb7ee68eac145c092b4e4163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac889b66e80ecaac22816927a120a416a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#ac889b66e80ecaac22816927a120a416a">dead</a> () const noexcept</td></tr>
<tr class="memdesc:ac889b66e80ecaac22816927a120a416a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a process is already terminated. <a href="classentt_1_1process.html#ac889b66e80ecaac22816927a120a416a">More...</a><br /></td></tr>
<tr class="separator:ac889b66e80ecaac22816927a120a416a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7738f4e908293a072a89981a004669a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#ac7738f4e908293a072a89981a004669a">paused</a> () const noexcept</td></tr>
<tr class="memdesc:ac7738f4e908293a072a89981a004669a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a process is currently paused. <a href="classentt_1_1process.html#ac7738f4e908293a072a89981a004669a">More...</a><br /></td></tr>
<tr class="separator:ac7738f4e908293a072a89981a004669a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c716b08baea91192512aeb14f26328b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a6c716b08baea91192512aeb14f26328b">rejected</a> () const noexcept</td></tr>
<tr class="memdesc:a6c716b08baea91192512aeb14f26328b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a process terminated with errors. <a href="classentt_1_1process.html#a6c716b08baea91192512aeb14f26328b">More...</a><br /></td></tr>
<tr class="separator:a6c716b08baea91192512aeb14f26328b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacc7fe0ef3265113079c70ff8cd9478d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#aacc7fe0ef3265113079c70ff8cd9478d">tick</a> (const Delta delta, void *data=nullptr)</td></tr>
<tr class="memdesc:aacc7fe0ef3265113079c70ff8cd9478d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates a process and its internal state if required. <a href="classentt_1_1process.html#aacc7fe0ef3265113079c70ff8cd9478d">More...</a><br /></td></tr>
<tr class="separator:aacc7fe0ef3265113079c70ff8cd9478d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a4380dab12dc4c7559ada2182468aa1db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a4380dab12dc4c7559ada2182468aa1db">succeed</a> () noexcept</td></tr>
<tr class="memdesc:a4380dab12dc4c7559ada2182468aa1db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates a process with success if it's still alive. <a href="classentt_1_1process.html#a4380dab12dc4c7559ada2182468aa1db">More...</a><br /></td></tr>
<tr class="separator:a4380dab12dc4c7559ada2182468aa1db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac7438533f769e1d24836ca04f86ec7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#aac7438533f769e1d24836ca04f86ec7c">fail</a> () noexcept</td></tr>
<tr class="memdesc:aac7438533f769e1d24836ca04f86ec7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates a process with errors if it's still alive. <a href="classentt_1_1process.html#aac7438533f769e1d24836ca04f86ec7c">More...</a><br /></td></tr>
<tr class="separator:aac7438533f769e1d24836ca04f86ec7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bcdfd9f2ec24b591ba1fbf38f563023"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a2bcdfd9f2ec24b591ba1fbf38f563023">pause</a> () noexcept</td></tr>
<tr class="memdesc:a2bcdfd9f2ec24b591ba1fbf38f563023"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a process if it's in a running state. <a href="classentt_1_1process.html#a2bcdfd9f2ec24b591ba1fbf38f563023">More...</a><br /></td></tr>
<tr class="separator:a2bcdfd9f2ec24b591ba1fbf38f563023"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b024d8b110a8ab631132acc6abfb9e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1process.html#a5b024d8b110a8ab631132acc6abfb9e1">unpause</a> () noexcept</td></tr>
<tr class="memdesc:a5b024d8b110a8ab631132acc6abfb9e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restarts a process if it's paused. <a href="classentt_1_1process.html#a5b024d8b110a8ab631132acc6abfb9e1">More...</a><br /></td></tr>
<tr class="separator:a5b024d8b110a8ab631132acc6abfb9e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Derived, typename Delta&gt;<br />
class entt::process&lt; Derived, Delta &gt;</h3>
<p>Base class for processes. </p>
<p>This class stays true to the CRTP idiom. Derived classes must specify what's the intended type for elapsed times.<br />
A process should expose publicly the following member functions whether required:</p>
<ul>
<li><div class="fragment"><div class="line"><span class="keywordtype">void</span> update(Delta, <span class="keywordtype">void</span> *);</div>
</div><!-- fragment --><p class="startli">It's invoked once per tick until a process is explicitly aborted or it terminates either with or without errors. Even though it's not mandatory to declare this member function, as a rule of thumb each process should at least define it to work properly. The <code>void *</code> parameter is an opaque pointer to user data (if any) forwarded directly to the process during an update.</p>
</li>
<li><div class="fragment"><div class="line"><span class="keywordtype">void</span> init();</div>
</div><!-- fragment --><p class="startli">It's invoked when the process joins the running queue of a scheduler. This happens as soon as it's attached to the scheduler if the process is a top level one, otherwise when it replaces its parent if the process is a continuation.</p>
</li>
<li><div class="fragment"><div class="line"><span class="keywordtype">void</span> succeeded();</div>
</div><!-- fragment --><p class="startli">It's invoked in case of success, immediately after an update and during the same tick.</p>
</li>
<li><div class="fragment"><div class="line"><span class="keywordtype">void</span> failed();</div>
</div><!-- fragment --><p class="startli">It's invoked in case of errors, immediately after an update and during the same tick.</p>
</li>
<li><div class="fragment"><div class="line"><span class="keywordtype">void</span> aborted();</div>
</div><!-- fragment --><p class="startli">It's invoked only if a process is explicitly aborted. There is no guarantee that it executes in the same tick, this depends solely on whether the process is aborted immediately or not.</p>
</li>
</ul>
<p>Derived classes can change the internal state of a process by invoking the <code>succeed</code> and <code>fail</code> protected member functions and even pause or unpause the process itself.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classentt_1_1scheduler.html" title="Cooperative scheduler for processes.">scheduler</a></dd></dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">Derived</td><td>Actual type of process that extends the class template. </td></tr>
<tr><td class="paramname">Delta</td><td>Type to use to provide elapsed time. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00073">73</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="af27d28af408f1dfb260b8fe976e66ea3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af27d28af408f1dfb260b8fe976e66ea3">&#9670;&nbsp;</a></span>abort()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::abort </td>
<td>(</td>
<td class="paramtype">const bool&#160;</td>
<td class="paramname"><em>immediately</em> = <code>false</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Aborts a process if it's still alive. </p>
<p>The function is idempotent and it does nothing if the process isn't alive.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">immediately</td><td>Requests an immediate operation. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00182">182</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="aacb0108ddb7ee68eac145c092b4e4163"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacb0108ddb7ee68eac145c092b4e4163">&#9670;&nbsp;</a></span>alive()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::alive </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if a process is either running or paused. </p>
<dl class="section return"><dt>Returns</dt><dd>True if the process is still alive, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00196">196</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="ac889b66e80ecaac22816927a120a416a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac889b66e80ecaac22816927a120a416a">&#9670;&nbsp;</a></span>dead()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::dead </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if a process is already terminated. </p>
<dl class="section return"><dt>Returns</dt><dd>True if the process is terminated, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00204">204</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="aac7438533f769e1d24836ca04f86ec7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac7438533f769e1d24836ca04f86ec7c">&#9670;&nbsp;</a></span>fail()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::fail </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Terminates a process with errors if it's still alive. </p>
<p>The function is idempotent and it does nothing if the process isn't alive. </p>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00135">135</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="a2bcdfd9f2ec24b591ba1fbf38f563023"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bcdfd9f2ec24b591ba1fbf38f563023">&#9670;&nbsp;</a></span>pause()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::pause </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Stops a process if it's in a running state. </p>
<p>The function is idempotent and it does nothing if the process isn't running. </p>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00147">147</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="ac7738f4e908293a072a89981a004669a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7738f4e908293a072a89981a004669a">&#9670;&nbsp;</a></span>paused()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::paused </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if a process is currently paused. </p>
<dl class="section return"><dt>Returns</dt><dd>True if the process is paused, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00212">212</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="a6c716b08baea91192512aeb14f26328b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c716b08baea91192512aeb14f26328b">&#9670;&nbsp;</a></span>rejected()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::rejected </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if a process terminated with errors. </p>
<dl class="section return"><dt>Returns</dt><dd>True if the process terminated with errors, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00220">220</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="a4380dab12dc4c7559ada2182468aa1db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4380dab12dc4c7559ada2182468aa1db">&#9670;&nbsp;</a></span>succeed()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::succeed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Terminates a process with success if it's still alive. </p>
<p>The function is idempotent and it does nothing if the process isn't alive. </p>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00123">123</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="aacc7fe0ef3265113079c70ff8cd9478d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacc7fe0ef3265113079c70ff8cd9478d">&#9670;&nbsp;</a></span>tick()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::tick </td>
<td>(</td>
<td class="paramtype">const Delta&#160;</td>
<td class="paramname"><em>delta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>data</em> = <code>nullptr</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Updates a process and its internal state if required. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">delta</td><td>Elapsed time. </td></tr>
<tr><td class="paramname">data</td><td>Optional data. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00229">229</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<a id="a5b024d8b110a8ab631132acc6abfb9e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b024d8b110a8ab631132acc6abfb9e1">&#9670;&nbsp;</a></span>unpause()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived , typename Delta &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classentt_1_1process.html">entt::process</a>&lt; Derived, Delta &gt;::unpause </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Restarts a process if it's paused. </p>
<p>The function is idempotent and it does nothing if the process isn't paused. </p>
<p class="definition">Definition at line <a class="el" href="process_8hpp_source.html#l00159">159</a> of file <a class="el" href="process_8hpp_source.html">process.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/entt/process/<a class="el" href="process_8hpp_source.html">process.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>