zeus/_future_8hpp_source.html

164 lines
17 KiB
HTML

<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>zeus: Zeus ewol micro-service interface: framework/atria-soft/zeus/zeus/Future.hpp Source File</title>
<!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
<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" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand">zeus: Zeus ewol micro-service interface 0.4.0</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Main&nbsp;Page</a></li>
<li><a href="pages.html">Related&nbsp;Pages</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="annotated.html">Classes</a></li>
<li><a href="files.html">Files</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Link-libs<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="http://HeeroYui.github.io/lutin">lutin</a></li>
<li><a href="http://atria-soft.github.io/ewol">ewol</a></li>
<li><a href="http://atria-soft.github.io/echrono">echrono</a></li>
<li><a href="http://atria-soft.github.io/etk">etk</a></li>
<li><a href="http://atria-soft.github.io/ejson">ejson</a></li>
<li><a href="http://atria-soft.github.io/exml">exml</a></li>
<li><a href="http://atria-soft.github.io/esvg">esvg</a></li>
<li><a href="http://atria-soft.github.io/egami">egami</a></li>
<li><a href="http://atria-soft.github.io/gale">gale</a></li>
<li><a href="http://atria-soft.github.io/ege">ege</a></li>
<li><a href="http://atria-soft.github.io/elog">elog</a></li>
<li><a href="http://atria-soft.github.io/ememory">ememory</a></li>
<li><a href="http://atria-soft.github.io/enet">enet</a></li>
<li><a href="http://atria-soft.github.io/eproperty">eproperty</a></li>
<li><a href="http://atria-soft.github.io/esignal">esignal</a></li>
<li><a href="http://atria-soft.github.io/etranslate">etranslate</a></li>
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
<li><a href="http://musicdsp.github.io/audio-ess">audio-ess</a></li>
<li><a href="http://musicdsp.github.io/audio">audio</a></li>
<li><a href="http://musicdsp.github.io/audio-drain">audio-drain</a></li>
<li><a href="http://musicdsp.github.io/audio-orchestra">audio-orchestra</a></li>
<li><a href="http://musicdsp.github.io/audio-river">audio-river</a></li>
</ul>
</li>
</ul>
<div id="search-box" class="input-group">
<div class="input-group-btn">
<button aria-expanded="false" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-search"></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">All</a></li>
<li><a href="#">Classes</a></li>
<li><a href="#">Namespaces</a></li>
<li><a href="#">Files</a></li>
<li><a href="#">Functions</a></li>
<li><a href="#">Variables</a></li>
<li><a href="#">Typedefs</a></li>
<li><a href="#">Enumerations</a></li>
<li><a href="#">Enumerator</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Macros</a></li>
<li><a href="#">Pages</a></li>
</ul>
</div>
<button id="search-close" type="button" class="close" aria-label="Close">
<span aria-hidden="true"></span>
</button>
<input id="search-field" class="form-control" accesskey="S" onkeydown="searchBox.OnSearchFieldChange(event);" placeholder="Search ..." type="text">
</div>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div class="content" id="content">
<div class="container">
<div class="row">
<div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
<div style="margin-bottom: 15px;margin-top: 60px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_a094892b17be858f66bf3446bbb755c7.html">atria-soft</a></li><li class="navelem"><a class="el" href="dir_96d802beaf7bb3afdcf2656a2c8ec44e.html">zeus</a></li><li class="navelem"><a class="el" href="dir_645a2e7aebb6c78a7ec97ee8c38ef7e7.html">zeus</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Future.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_future_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_future_base_8hpp.html">zeus/FutureBase.hpp</a>&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacezeus.html">zeus</a> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">class</span> ZEUS_RETURN&gt;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classzeus_1_1_future.html"> 15</a></span>&#160; <span class="keyword">class </span><a class="code" href="classzeus_1_1_future.html">Future</a> : <span class="keyword">public</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a> {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classzeus_1_1_future.html#a42490db27cc66fc097840c23cdffbc0b"> 21</a></span>&#160; <a class="code" href="classzeus_1_1_future.html#a42490db27cc66fc097840c23cdffbc0b">Future</a>(<span class="keyword">const</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a>&amp; _base):</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <a class="code" href="namespacezeus.html">zeus</a>::<a class="code" href="classzeus_1_1_future_base.html">FutureBase</a>(_base) {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; }</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classzeus_1_1_future.html#a47ea6f94decc691855785c1fe8350f5f"> 30</a></span>&#160; <a class="code" href="classzeus_1_1_future.html">zeus::Future&lt;ZEUS_RETURN&gt;</a>&amp; <a class="code" href="classzeus_1_1_future.html#a47ea6f94decc691855785c1fe8350f5f">operator= </a>(<span class="keyword">const</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a>&amp; _base) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; m_data = _base.m_data;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; }</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; ZEUS_RETURN <span class="keyword">get</span>();</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; };</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">template</span>&lt;&gt;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classzeus_1_1_future_3_01void_01_4.html"> 44</a></span>&#160; <span class="keyword">class </span><a class="code" href="classzeus_1_1_future.html">Future</a>&lt;void&gt; : <span class="keyword">public</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classzeus_1_1_future_3_01void_01_4.html#a7a04b19d6e0513542990b1346e42bce9"> 50</a></span>&#160; <a class="code" href="classzeus_1_1_future_3_01void_01_4.html#a7a04b19d6e0513542990b1346e42bce9">Future</a>(<span class="keyword">const</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a>&amp; _base):</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="namespacezeus.html">zeus</a>::<a class="code" href="classzeus_1_1_future_base.html">FutureBase</a>(_base) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classzeus_1_1_future_3_01void_01_4.html#aaf64f8f66abe12300aec42e009ec8a46"> 59</a></span>&#160; <a class="code" href="classzeus_1_1_future_3_01void_01_4.html">zeus::Future&lt;void&gt;</a>&amp; <a class="code" href="classzeus_1_1_future.html#a47ea6f94decc691855785c1fe8350f5f">operator= </a>(<span class="keyword">const</span> <a class="code" href="classzeus_1_1_future_base.html">zeus::FutureBase</a>&amp; _base) {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; m_data = _base.m_data;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; };</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div><div class="ttc" id="classzeus_1_1_future_base_html"><div class="ttname"><a href="classzeus_1_1_future_base.html">zeus::FutureBase</a></div><div class="ttdoc">Generic zeus Future interface to get data asynchronously. </div><div class="ttdef"><b>Definition:</b> FutureBase.hpp:14</div></div>
<div class="ttc" id="_future_base_8hpp_html"><div class="ttname"><a href="_future_base_8hpp.html">FutureBase.hpp</a></div></div>
<div class="ttc" id="classzeus_1_1_future_html"><div class="ttname"><a href="classzeus_1_1_future.html">zeus::Future</a></div><div class="ttdoc">future template to cast type in a specific type </div><div class="ttdef"><b>Definition:</b> Future.hpp:15</div></div>
<div class="ttc" id="classzeus_1_1_future_3_01void_01_4_html_a7a04b19d6e0513542990b1346e42bce9"><div class="ttname"><a href="classzeus_1_1_future_3_01void_01_4.html#a7a04b19d6e0513542990b1346e42bce9">zeus::Future&lt; void &gt;::Future</a></div><div class="ttdeci">Future(const zeus::FutureBase &amp;_base)</div><div class="ttdoc">contructor of the Future with the basic FutureBase </div><div class="ttdef"><b>Definition:</b> Future.hpp:50</div></div>
<div class="ttc" id="classzeus_1_1_future_3_01void_01_4_html"><div class="ttname"><a href="classzeus_1_1_future_3_01void_01_4.html">zeus::Future&lt; void &gt;</a></div><div class="ttdoc">future template to cast type in a void methode (fallback) </div><div class="ttdef"><b>Definition:</b> Future.hpp:44</div></div>
<div class="ttc" id="namespacezeus_html"><div class="ttname"><a href="namespacezeus.html">zeus</a></div><div class="ttdoc">Main zeus library namespace. </div><div class="ttdef"><b>Definition:</b> AbstractFunction.hpp:15</div></div>
<div class="ttc" id="classzeus_1_1_future_html_a47ea6f94decc691855785c1fe8350f5f"><div class="ttname"><a href="classzeus_1_1_future.html#a47ea6f94decc691855785c1fe8350f5f">zeus::Future::operator=</a></div><div class="ttdeci">zeus::Future&lt; ZEUS_RETURN &gt; &amp; operator=(const zeus::FutureBase &amp;_base)</div><div class="ttdoc">Asignement operator with an other future. </div><div class="ttdef"><b>Definition:</b> Future.hpp:30</div></div>
<div class="ttc" id="classzeus_1_1_future_html_a42490db27cc66fc097840c23cdffbc0b"><div class="ttname"><a href="classzeus_1_1_future.html#a42490db27cc66fc097840c23cdffbc0b">zeus::Future::Future</a></div><div class="ttdeci">Future(const zeus::FutureBase &amp;_base)</div><div class="ttdoc">contructor of the Future with the basic FutureBase </div><div class="ttdef"><b>Definition:</b> Future.hpp:21</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 24 2016 15:35:54 for zeus: Zeus ewol micro-service interface by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>