574 lines
28 KiB
HTML
574 lines
28 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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.13.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>My Project: Algo Class 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>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.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>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { init_search(); });
|
|
/* @license-end */
|
|
</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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">My Project
|
|
</div>
|
|
</td>
|
|
<td> <div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('classAlgo.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classAlgo-members.html">List of all members</a> </div>
|
|
<div class="headertitle"><div class="title">Algo Class Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="Algo_8hh_source.html">Algo.hh</a>></code></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for Algo:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classAlgo__coll__graph.png" border="0" usemap="#aAlgo_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="aAlgo_coll__map" id="aAlgo_coll__map">
|
|
<area shape="rect" title=" " alt="" coords="98,277,241,639"/>
|
|
<area shape="rect" href="classutils_1_1ThreadSafeQueue.html" title=" " alt="" coords="5,30,168,187"/>
|
|
<area shape="poly" title=" " alt="" coords="108,186,125,260,120,261,102,187"/>
|
|
<area shape="rect" href="classutils_1_1ThreadPool.html" title=" " alt="" coords="192,5,315,212"/>
|
|
<area shape="poly" title=" " alt="" coords="235,212,225,253,223,261,218,260,220,252,230,211"/>
|
|
</map>
|
|
</div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:aaf4f951979fc60411ed84c558f081867" id="r_aaf4f951979fc60411ed84c558f081867"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aaf4f951979fc60411ed84c558f081867">Algo</a> ()</td></tr>
|
|
<tr class="separator:aaf4f951979fc60411ed84c558f081867"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac8b70d722d4b2c1ad5cad4a63c3b7c62" id="r_ac8b70d722d4b2c1ad5cad4a63c3b7c62"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac8b70d722d4b2c1ad5cad4a63c3b7c62">initialize</a> ()</td></tr>
|
|
<tr class="separator:ac8b70d722d4b2c1ad5cad4a63c3b7c62"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac223b246cd2f8851c4e0893ff41547fa" id="r_ac223b246cd2f8851c4e0893ff41547fa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac223b246cd2f8851c4e0893ff41547fa">generate_orders</a> ()</td></tr>
|
|
<tr class="separator:ac223b246cd2f8851c4e0893ff41547fa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8fcaaeaa5ad212a126490a19370c9b7e" id="r_a8fcaaeaa5ad212a126490a19370c9b7e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process</a> ()</td></tr>
|
|
<tr class="separator:a8fcaaeaa5ad212a126490a19370c9b7e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac556564d232b2d90cec73718538ec804" id="r_ac556564d232b2d90cec73718538ec804"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac556564d232b2d90cec73718538ec804">send</a> (trading::Order &)</td></tr>
|
|
<tr class="separator:ac556564d232b2d90cec73718538ec804"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6fef1866e14e8a08788cb1d54afcedaf" id="r_a6fef1866e14e8a08788cb1d54afcedaf"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#a6fef1866e14e8a08788cb1d54afcedaf">initialized</a> ()</td></tr>
|
|
<tr class="separator:a6fef1866e14e8a08788cb1d54afcedaf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a330f03f9df9e5d1e2b701bc3f5e94524" id="r_a330f03f9df9e5d1e2b701bc3f5e94524"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a330f03f9df9e5d1e2b701bc3f5e94524">stop</a> ()</td></tr>
|
|
<tr class="separator:a330f03f9df9e5d1e2b701bc3f5e94524"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a889e1362976e78c4904007ee5edfd3fe" id="r_a889e1362976e78c4904007ee5edfd3fe"><td class="memItemLeft" align="right" valign="top">std::queue< trading::Order > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a889e1362976e78c4904007ee5edfd3fe">_orders</a></td></tr>
|
|
<tr class="separator:a889e1362976e78c4904007ee5edfd3fe"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6cffb1f6d087978eba685bcb1d06b11d" id="r_a6cffb1f6d087978eba685bcb1d06b11d"><td class="memItemLeft" align="right" valign="top">std::atomic< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a6cffb1f6d087978eba685bcb1d06b11d">_initialized</a> {false}</td></tr>
|
|
<tr class="separator:a6cffb1f6d087978eba685bcb1d06b11d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3ce5d714379ab5094b6d82b99421b4a3" id="r_a3ce5d714379ab5094b6d82b99421b4a3"><td class="memItemLeft" align="right" valign="top">std::atomic< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a3ce5d714379ab5094b6d82b99421b4a3">_running</a> {false}</td></tr>
|
|
<tr class="separator:a3ce5d714379ab5094b6d82b99421b4a3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af5bcfa2719e948826f71983a18ec017d" id="r_af5bcfa2719e948826f71983a18ec017d"><td class="memItemLeft" align="right" valign="top">std::shared_ptr< <a class="el" href="classPublisher.html">Publisher</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="#af5bcfa2719e948826f71983a18ec017d">_pub</a></td></tr>
|
|
<tr class="separator:af5bcfa2719e948826f71983a18ec017d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac4f2da176cc2dc9ba757140a635fe9b8" id="r_ac4f2da176cc2dc9ba757140a635fe9b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutils_1_1ThreadSafeQueue.html">utils::ThreadSafeQueue</a>< trading::Order > </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac4f2da176cc2dc9ba757140a635fe9b8">_order_queue</a></td></tr>
|
|
<tr class="separator:ac4f2da176cc2dc9ba757140a635fe9b8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adb85594bf1d2e7c9357d353b5e97787d" id="r_adb85594bf1d2e7c9357d353b5e97787d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classutils_1_1ThreadPool.html">utils::ThreadPool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#adb85594bf1d2e7c9357d353b5e97787d">_thread_pool</a></td></tr>
|
|
<tr class="separator:adb85594bf1d2e7c9357d353b5e97787d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4943cab875d5261b0abec360b68878e8" id="r_a4943cab875d5261b0abec360b68878e8"><td class="memItemLeft" align="right" valign="top">std::mutex </td><td class="memItemRight" valign="bottom"><a class="el" href="#a4943cab875d5261b0abec360b68878e8">_send_mutex</a></td></tr>
|
|
<tr class="separator:a4943cab875d5261b0abec360b68878e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a743ddc60baad0afa7f036a529c340460" id="r_a743ddc60baad0afa7f036a529c340460"><td class="memItemLeft" align="right" valign="top">std::jthread </td><td class="memItemRight" valign="bottom"><a class="el" href="#a743ddc60baad0afa7f036a529c340460">_reader_thread</a></td></tr>
|
|
<tr class="separator:a743ddc60baad0afa7f036a529c340460"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac72ec5a778fce0be42ebf635f2c504d0" id="r_ac72ec5a778fce0be42ebf635f2c504d0"><td class="memItemLeft" align="right" valign="top">std::vector< std::jthread > </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac72ec5a778fce0be42ebf635f2c504d0">_worker_threads</a></td></tr>
|
|
<tr class="separator:ac72ec5a778fce0be42ebf635f2c504d0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a671449864b2d1a1af9a57970eb104a0f" id="r_a671449864b2d1a1af9a57970eb104a0f"><td class="memItemLeft" align="right" valign="top">std::vector< std::future< bool > > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a671449864b2d1a1af9a57970eb104a0f">_futures</a></td></tr>
|
|
<tr class="separator:a671449864b2d1a1af9a57970eb104a0f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="aaf4f951979fc60411ed84c558f081867" name="aaf4f951979fc60411ed84c558f081867"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aaf4f951979fc60411ed84c558f081867">◆ </a></span>Algo()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Algo::Algo </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="ac223b246cd2f8851c4e0893ff41547fa" name="ac223b246cd2f8851c4e0893ff41547fa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac223b246cd2f8851c4e0893ff41547fa">◆ </a></span>generate_orders()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Algo::generate_orders </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#a889e1362976e78c4904007ee5edfd3fe">_orders</a>, and <a class="el" href="namespacereaders_1_1json.html#a05735378dfc87c287094d7aa33ac8209">readers::json::read_orders_from_json()</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classAlgo_ac223b246cd2f8851c4e0893ff41547fa_cgraph.png" border="0" usemap="#aclassAlgo_ac223b246cd2f8851c4e0893ff41547fa_cgraph" alt=""/></div>
|
|
<map name="aclassAlgo_ac223b246cd2f8851c4e0893ff41547fa_cgraph" id="aclassAlgo_ac223b246cd2f8851c4e0893ff41547fa_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,14,170,42"/>
|
|
<area shape="rect" href="namespacereaders_1_1json.html#a05735378dfc87c287094d7aa33ac8209" title=" " alt="" coords="218,5,360,50"/>
|
|
<area shape="poly" title=" " alt="" coords="170,25,202,25,202,30,170,30"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac8b70d722d4b2c1ad5cad4a63c3b7c62" name="ac8b70d722d4b2c1ad5cad4a63c3b7c62"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac8b70d722d4b2c1ad5cad4a63c3b7c62">◆ </a></span>initialize()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Algo::initialize </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#a6cffb1f6d087978eba685bcb1d06b11d">_initialized</a>, and <a class="el" href="#af5bcfa2719e948826f71983a18ec017d">_pub</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6fef1866e14e8a08788cb1d54afcedaf" name="a6fef1866e14e8a08788cb1d54afcedaf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6fef1866e14e8a08788cb1d54afcedaf">◆ </a></span>initialized()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool Algo::initialized </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#a6cffb1f6d087978eba685bcb1d06b11d">_initialized</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8fcaaeaa5ad212a126490a19370c9b7e" name="a8fcaaeaa5ad212a126490a19370c9b7e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8fcaaeaa5ad212a126490a19370c9b7e">◆ </a></span>process()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Algo::process </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#a671449864b2d1a1af9a57970eb104a0f">_futures</a>, <a class="el" href="#ac4f2da176cc2dc9ba757140a635fe9b8">_order_queue</a>, <a class="el" href="#af5bcfa2719e948826f71983a18ec017d">_pub</a>, <a class="el" href="#a743ddc60baad0afa7f036a529c340460">_reader_thread</a>, <a class="el" href="#a4943cab875d5261b0abec360b68878e8">_send_mutex</a>, <a class="el" href="#adb85594bf1d2e7c9357d353b5e97787d">_thread_pool</a>, <a class="el" href="#ac72ec5a778fce0be42ebf635f2c504d0">_worker_threads</a>, and <a class="el" href="namespacereaders_1_1json.html#a05735378dfc87c287094d7aa33ac8209">readers::json::read_orders_from_json()</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classAlgo_a8fcaaeaa5ad212a126490a19370c9b7e_cgraph.png" border="0" usemap="#aclassAlgo_a8fcaaeaa5ad212a126490a19370c9b7e_cgraph" alt=""/></div>
|
|
<map name="aclassAlgo_a8fcaaeaa5ad212a126490a19370c9b7e_cgraph" id="aclassAlgo_a8fcaaeaa5ad212a126490a19370c9b7e_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,14,114,42"/>
|
|
<area shape="rect" href="namespacereaders_1_1json.html#a05735378dfc87c287094d7aa33ac8209" title=" " alt="" coords="162,5,304,50"/>
|
|
<area shape="poly" title=" " alt="" coords="114,25,146,25,146,30,114,30"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac556564d232b2d90cec73718538ec804" name="ac556564d232b2d90cec73718538ec804"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac556564d232b2d90cec73718538ec804">◆ </a></span>send()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Algo::send </td>
|
|
<td>(</td>
|
|
<td class="paramtype">trading::Order &</td> <td class="paramname"><span class="paramname"><em>order</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#af5bcfa2719e948826f71983a18ec017d">_pub</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a330f03f9df9e5d1e2b701bc3f5e94524" name="a330f03f9df9e5d1e2b701bc3f5e94524"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a330f03f9df9e5d1e2b701bc3f5e94524">◆ </a></span>stop()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Algo::stop </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">References <a class="el" href="#a671449864b2d1a1af9a57970eb104a0f">_futures</a>, <a class="el" href="#a743ddc60baad0afa7f036a529c340460">_reader_thread</a>, and <a class="el" href="#ac72ec5a778fce0be42ebf635f2c504d0">_worker_threads</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="a671449864b2d1a1af9a57970eb104a0f" name="a671449864b2d1a1af9a57970eb104a0f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a671449864b2d1a1af9a57970eb104a0f">◆ </a></span>_futures</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<std::future<bool> > Algo::_futures</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>, and <a class="el" href="#a330f03f9df9e5d1e2b701bc3f5e94524">stop()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6cffb1f6d087978eba685bcb1d06b11d" name="a6cffb1f6d087978eba685bcb1d06b11d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6cffb1f6d087978eba685bcb1d06b11d">◆ </a></span>_initialized</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::atomic<bool> Algo::_initialized {false}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#ac8b70d722d4b2c1ad5cad4a63c3b7c62">initialize()</a>, and <a class="el" href="#a6fef1866e14e8a08788cb1d54afcedaf">initialized()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac4f2da176cc2dc9ba757140a635fe9b8" name="ac4f2da176cc2dc9ba757140a635fe9b8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac4f2da176cc2dc9ba757140a635fe9b8">◆ </a></span>_order_queue</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classutils_1_1ThreadSafeQueue.html">utils::ThreadSafeQueue</a><trading::Order> Algo::_order_queue</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a889e1362976e78c4904007ee5edfd3fe" name="a889e1362976e78c4904007ee5edfd3fe"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a889e1362976e78c4904007ee5edfd3fe">◆ </a></span>_orders</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::queue<trading::Order> Algo::_orders</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#ac223b246cd2f8851c4e0893ff41547fa">generate_orders()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af5bcfa2719e948826f71983a18ec017d" name="af5bcfa2719e948826f71983a18ec017d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af5bcfa2719e948826f71983a18ec017d">◆ </a></span>_pub</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::shared_ptr<<a class="el" href="classPublisher.html">Publisher</a>> Algo::_pub</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#ac8b70d722d4b2c1ad5cad4a63c3b7c62">initialize()</a>, <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>, and <a class="el" href="#ac556564d232b2d90cec73718538ec804">send()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a743ddc60baad0afa7f036a529c340460" name="a743ddc60baad0afa7f036a529c340460"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a743ddc60baad0afa7f036a529c340460">◆ </a></span>_reader_thread</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::jthread Algo::_reader_thread</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>, and <a class="el" href="#a330f03f9df9e5d1e2b701bc3f5e94524">stop()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3ce5d714379ab5094b6d82b99421b4a3" name="a3ce5d714379ab5094b6d82b99421b4a3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3ce5d714379ab5094b6d82b99421b4a3">◆ </a></span>_running</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::atomic<bool> Algo::_running {false}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4943cab875d5261b0abec360b68878e8" name="a4943cab875d5261b0abec360b68878e8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4943cab875d5261b0abec360b68878e8">◆ </a></span>_send_mutex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::mutex Algo::_send_mutex</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adb85594bf1d2e7c9357d353b5e97787d" name="adb85594bf1d2e7c9357d353b5e97787d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adb85594bf1d2e7c9357d353b5e97787d">◆ </a></span>_thread_pool</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classutils_1_1ThreadPool.html">utils::ThreadPool</a> Algo::_thread_pool</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac72ec5a778fce0be42ebf635f2c504d0" name="ac72ec5a778fce0be42ebf635f2c504d0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac72ec5a778fce0be42ebf635f2c504d0">◆ </a></span>_worker_threads</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<std::jthread> Algo::_worker_threads</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel private">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">Referenced by <a class="el" href="#a8fcaaeaa5ad212a126490a19370c9b7e">process()</a>, and <a class="el" href="#a330f03f9df9e5d1e2b701bc3f5e94524">stop()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>include/<a class="el" href="Algo_8hh_source.html">Algo.hh</a></li>
|
|
<li>src/<a class="el" href="Algo_8cc.html">Algo.cc</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="classAlgo.html">Algo</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.0 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|