-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent_2impl_8hpp_source.html
291 lines (289 loc) · 52.8 KB
/
agent_2impl_8hpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!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.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenCBDC Transaction Processor: impl.hpp Source File</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>
<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">OpenCBDC Transaction Processor
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.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>
<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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</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('agent_2impl_8hpp_source.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="headertitle"><div class="title">agent/impl.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="agent_2impl_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright (c) 2021 MIT Digital Currency Initiative,</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Federal Reserve Bank of Boston</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// Distributed under the MIT software license, see the accompanying</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#ifndef OPENCBDC_TX_SRC_PARSEC_AGENT_IMPL_H_</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#define OPENCBDC_TX_SRC_PARSEC_AGENT_IMPL_H_</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "<a class="code" href="parsec_2agent_2interface_8hpp.html">interface.hpp</a>"</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include "<a class="code" href="parsec_2agent_2runners_2interface_8hpp.html">parsec/agent/runners/interface.hpp</a>"</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include "<a class="code" href="parsec_2broker_2interface_8hpp.html">parsec/broker/interface.hpp</a>"</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include "<a class="code" href="logging_8hpp.html">util/common/logging.hpp</a>"</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacecbdc_1_1parsec_1_1agent.html">cbdc::parsec::agent</a> {</div>
<div class="foldopen" id="foldopen00016" data-start="{" data-end="};">
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html"> 16</a></span> <span class="keyword">class </span><a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a> : <span class="keyword">public</span> <a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1interface.html">interface</a> {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947d"> 19</a></span> <span class="keyword">enum class</span> <a class="code hl_enumeration" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947d">state</a> {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dae37f0136aa3ffaf149b351f6a4c948e9">init</a>,</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da1089ad1c441fbd40cfd939d9a9ad2fc9">begin_sent</a>,</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daf8971c07e69cacf57fdf64e2e1fed5a7">begin_failed</a>,</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da377f060ec284f0114505bb7b2134f8f5">function_get_sent</a>,</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da18d448795c00ff8347f5f32563695307">function_get_failed</a>,</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da21352b4733b843933c296b220d613f42">function_get_error</a>,</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da51a1fea3a56c2f5edc338c6ef7223a9c">function_started</a>,</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dafca8ef087dd3b88f9fd31d29ea770852">function_failed</a>,</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa2d05db3802fe73f2a4ef24d3ae177ee">function_exception</a>,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa79b00c3bdbe9ba1c8fde51ef7903f99">commit_sent</a>,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da7ab6d56f5b4ed3c78216fe0670a32417">commit_failed</a>,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da20218462c307088a7a32e5fdd0a21a6e">commit_error</a>,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dac2bec61f5c064e1e17f64bee1b436cad">finish_sent</a>,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da8e244b88d363946ac23c1256a501eadc">finish_failed</a>,</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa47b5b47c2394baa395d0c1cf068ded7">finish_complete</a>,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daaacc98789ddaefa7217cca866236df0c">rollback_sent</a>,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da22643da2ef6b0753926c8fa6b5ad5f94">rollback_failed</a>,</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daafcabef55a922f193cd0428165bfdffe">rollback_complete</a></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> };</div>
</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a8a9068f0c0db333285f02479e79b63bf">impl</a>(std::shared_ptr<logging::log> logger,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_struct" href="structcbdc_1_1parsec_1_1config.html">cbdc::parsec::config</a> cfg,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1agent_1_1runner_1_1interface.html#a873918bc570092134d0e4ea3836f658c">runner::interface::factory_type</a> runner_factory,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> std::shared_ptr<broker::interface> broker,</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_class" href="classcbdc_1_1buffer.html">runtime_locking_shard::key_type</a> function,</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_class" href="classcbdc_1_1buffer.html">parameter_type</a> param,</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1agent_1_1interface.html#ac7681a694f8b68874429f47874408c67">exec_callback_type</a> result_callback,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_enumeration" href="namespacecbdc_1_1parsec_1_1runtime__locking__shard.html#af6d0adbce827f930d52e6c4d9e18851a">broker::lock_type</a> initial_lock_type,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">bool</span> is_readonly_run,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> std::shared_ptr<secp256k1_context> secp,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> std::shared_ptr<thread_pool> t_pool);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#aa100fe761a417db8c5a32f6d26848f7e">~impl</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a90c9b813739f985d0ba64253e47a8043"> 88</a></span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a90c9b813739f985d0ba64253e47a8043">impl</a>(<span class="keyword">const</span> <a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>&) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a8ff0b5c1cd95988b9225f0000867c8c6"> 89</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a8ff0b5c1cd95988b9225f0000867c8c6">operator=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>&) -> <a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>& = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a1fe8cd68b40df85f6947150b60e13e38"> 90</a></span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a1fe8cd68b40df85f6947150b60e13e38">impl</a>(<a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>&&) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#aff5cb92a5b0763873f229e168b3a5d2c"> 91</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#aff5cb92a5b0763873f229e168b3a5d2c">operator=</a>(<a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>&&) -> <a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1impl.html">impl</a>& = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">auto</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a5211f4c8c2f07672ad5ca4557bcf4cdc">exec</a>() -> <span class="keywordtype">bool</span> <span class="keyword">override</span>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keyword">auto</span> <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#ad5fa4b44d55803dc20984349791800ee">get_ticket_number</a>() const</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> -> std::optional<ticket_machine::ticket_number_type>;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> auto <a class="code hl_function" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a560322b7819af49f36be858267720039">get_state</a>() const -> <a class="code hl_enumeration" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947d">state</a>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> private:</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> std::shared_ptr<logging::log> m_log;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> const <a class="code hl_namespace" href="namespacecbdc.html">cbdc</a>::parsec::<a class="code hl_struct" href="structcbdc_1_1parsec_1_1config.html">config</a> m_cfg;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> runner::<a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1interface.html">interface</a>::factory_type m_runner_factory;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> std::shared_ptr<broker::<a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1interface.html">interface</a>> m_broker;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> std::optional<ticket_machine::ticket_number_type> m_ticket_number;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> std::optional<<a class="code hl_typedef" href="classcbdc_1_1parsec_1_1agent_1_1interface.html#a9480778dec29a2f0f68c38807ca5ccfe">exec_return_type</a>> m_result;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> std::unique_ptr<runner::<a class="code hl_class" href="classcbdc_1_1parsec_1_1agent_1_1interface.html">interface</a>> m_runner;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_enumeration" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947d">state</a> m_state{<a class="code hl_enumvalue" href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dae37f0136aa3ffaf149b351f6a4c948e9">state::init</a>};</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordtype">bool</span> m_permanent_error{<span class="keyword">false</span>};</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">mutable</span> std::recursive_mutex m_mut;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_enumeration" href="namespacecbdc_1_1parsec_1_1runtime__locking__shard.html#af6d0adbce827f930d52e6c4d9e18851a">broker::lock_type</a> m_initial_lock_type;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">bool</span> m_is_readonly_run;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> std::shared_ptr<secp256k1_context> m_secp;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> std::shared_ptr<thread_pool> m_threads;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> std::optional<hash_t> m_tx_id;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">bool</span> m_wounded{<span class="keyword">false</span>};</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_typedef" href="namespacecbdc_1_1parsec_1_1broker.html#a635e308bb8a7beaf169282b11f4ad340">broker::held_locks_set_type</a> m_requested_locks{};</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">bool</span> m_restarted{<span class="keyword">false</span>};</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordtype">void</span> handle_begin(<a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#ae8aae36c6d735c1e1534aec4dc164f88">broker::interface::ticketnum_or_errcode_type</a> res);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> handle_function(<span class="keyword">const</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a7ad81d8ee6b0c0df7f8d2070b7e0d6f5">broker::interface::try_lock_return_type</a>& res);</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> handle_run(<span class="keyword">const</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1agent_1_1runner_1_1interface.html#ab8fad94fc48dece44342f3e8c84a9dba">runner::interface::run_return_type</a>& res);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">void</span> handle_commit(<a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a84a4667edd4b6feaf9f16227ac3714c0">broker::interface::commit_return_type</a> res);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> do_start();</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">void</span> do_result();</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordtype">void</span> do_finish();</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">void</span> do_runner(<a class="code hl_typedef" href="namespacecbdc_1_1parsec_1_1broker.html#a1a58afec24ea8a47bb720c8e37dc457e">broker::value_type</a> v);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">void</span> do_rollback(<span class="keywordtype">bool</span> finish);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordtype">void</span> do_commit();</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> [[nodiscard]] <span class="keyword">auto</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> do_try_lock_request(<a class="code hl_typedef" href="namespacecbdc_1_1parsec_1_1broker.html#a63524410a095b015191a2d57a93a9bab">broker::key_type</a> key,</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_typedef" href="namespacecbdc_1_1parsec_1_1broker.html#ac3ea914b78c4a158376a9d8c5b80c6fa">broker::lock_type</a> locktype,</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#af68b3e8c226eaff996bd53c131f0f93f">broker::interface::try_lock_callback_type</a> res_cb)</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> -> bool;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> handle_rollback(<a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#af8c5164208dd11fb67513f1d5f098997">broker::interface::rollback_return_type</a> rollback_res);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> handle_finish(<a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a8fcd3747273d7841f304d061c3abd475">broker::interface::finish_return_type</a> finish_res);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordtype">void</span> handle_try_lock_response(</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">const</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#af68b3e8c226eaff996bd53c131f0f93f">broker::interface::try_lock_callback_type</a>& res_cb,</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_typedef" href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a7ad81d8ee6b0c0df7f8d2070b7e0d6f5">broker::interface::try_lock_return_type</a> res);</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> };</div>
</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span>}</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclasscbdc_1_1buffer_html"><div class="ttname"><a href="classcbdc_1_1buffer.html">cbdc::buffer</a></div><div class="ttdoc">Buffer to store and retrieve byte data.</div><div class="ttdef"><b>Definition</b> <a href="buffer_8hpp_source.html#l00015">buffer.hpp:15</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html">cbdc::parsec::agent::impl</a></div><div class="ttdoc">Implementation of an agent.</div><div class="ttdef"><b>Definition</b> <a href="#l00016">agent/impl.hpp:16</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a1fe8cd68b40df85f6947150b60e13e38"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a1fe8cd68b40df85f6947150b60e13e38">cbdc::parsec::agent::impl::impl</a></div><div class="ttdeci">impl(impl &&)=delete</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947d"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947d">cbdc::parsec::agent::impl::state</a></div><div class="ttdeci">state</div><div class="ttdoc">States for a ticket managed by this agent.</div><div class="ttdef"><b>Definition</b> <a href="#l00019">agent/impl.hpp:19</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da1089ad1c441fbd40cfd939d9a9ad2fc9"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da1089ad1c441fbd40cfd939d9a9ad2fc9">cbdc::parsec::agent::impl::state::begin_sent</a></div><div class="ttdeci">@ begin_sent</div><div class="ttdoc">Begin request sent to broker.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da18d448795c00ff8347f5f32563695307"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da18d448795c00ff8347f5f32563695307">cbdc::parsec::agent::impl::state::function_get_failed</a></div><div class="ttdeci">@ function_get_failed</div><div class="ttdoc">Function bytecode lock request failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da20218462c307088a7a32e5fdd0a21a6e"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da20218462c307088a7a32e5fdd0a21a6e">cbdc::parsec::agent::impl::state::commit_error</a></div><div class="ttdeci">@ commit_error</div><div class="ttdoc">Broker error during commit request.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da21352b4733b843933c296b220d613f42"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da21352b4733b843933c296b220d613f42">cbdc::parsec::agent::impl::state::function_get_error</a></div><div class="ttdeci">@ function_get_error</div><div class="ttdoc">Broker error during function bytecode lock.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da22643da2ef6b0753926c8fa6b5ad5f94"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da22643da2ef6b0753926c8fa6b5ad5f94">cbdc::parsec::agent::impl::state::rollback_failed</a></div><div class="ttdeci">@ rollback_failed</div><div class="ttdoc">Rollback request failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da377f060ec284f0114505bb7b2134f8f5"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da377f060ec284f0114505bb7b2134f8f5">cbdc::parsec::agent::impl::state::function_get_sent</a></div><div class="ttdeci">@ function_get_sent</div><div class="ttdoc">Function bytecode lock sent to broker.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da51a1fea3a56c2f5edc338c6ef7223a9c"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da51a1fea3a56c2f5edc338c6ef7223a9c">cbdc::parsec::agent::impl::state::function_started</a></div><div class="ttdeci">@ function_started</div><div class="ttdoc">Function execution started.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da7ab6d56f5b4ed3c78216fe0670a32417"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da7ab6d56f5b4ed3c78216fe0670a32417">cbdc::parsec::agent::impl::state::commit_failed</a></div><div class="ttdeci">@ commit_failed</div><div class="ttdoc">Commit request failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947da8e244b88d363946ac23c1256a501eadc"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947da8e244b88d363946ac23c1256a501eadc">cbdc::parsec::agent::impl::state::finish_failed</a></div><div class="ttdeci">@ finish_failed</div><div class="ttdoc">Finish request failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daa2d05db3802fe73f2a4ef24d3ae177ee"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa2d05db3802fe73f2a4ef24d3ae177ee">cbdc::parsec::agent::impl::state::function_exception</a></div><div class="ttdeci">@ function_exception</div><div class="ttdoc">Function error during execution.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daa47b5b47c2394baa395d0c1cf068ded7"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa47b5b47c2394baa395d0c1cf068ded7">cbdc::parsec::agent::impl::state::finish_complete</a></div><div class="ttdeci">@ finish_complete</div><div class="ttdoc">Finish complete.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daa79b00c3bdbe9ba1c8fde51ef7903f99"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daa79b00c3bdbe9ba1c8fde51ef7903f99">cbdc::parsec::agent::impl::state::commit_sent</a></div><div class="ttdeci">@ commit_sent</div><div class="ttdoc">Commit request sent to broker.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daaacc98789ddaefa7217cca866236df0c"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daaacc98789ddaefa7217cca866236df0c">cbdc::parsec::agent::impl::state::rollback_sent</a></div><div class="ttdeci">@ rollback_sent</div><div class="ttdoc">Rollback request sent to broker.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daafcabef55a922f193cd0428165bfdffe"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daafcabef55a922f193cd0428165bfdffe">cbdc::parsec::agent::impl::state::rollback_complete</a></div><div class="ttdeci">@ rollback_complete</div><div class="ttdoc">Rollback complete.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947dac2bec61f5c064e1e17f64bee1b436cad"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dac2bec61f5c064e1e17f64bee1b436cad">cbdc::parsec::agent::impl::state::finish_sent</a></div><div class="ttdeci">@ finish_sent</div><div class="ttdoc">Finish request sent to broker.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947dae37f0136aa3ffaf149b351f6a4c948e9"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dae37f0136aa3ffaf149b351f6a4c948e9">cbdc::parsec::agent::impl::state::init</a></div><div class="ttdeci">@ init</div><div class="ttdoc">Initial state.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947daf8971c07e69cacf57fdf64e2e1fed5a7"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947daf8971c07e69cacf57fdf64e2e1fed5a7">cbdc::parsec::agent::impl::state::begin_failed</a></div><div class="ttdeci">@ begin_failed</div><div class="ttdoc">Begin request failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a218e5c521f5f3f5ddf916e508d5e947dafca8ef087dd3b88f9fd31d29ea770852"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a218e5c521f5f3f5ddf916e508d5e947dafca8ef087dd3b88f9fd31d29ea770852">cbdc::parsec::agent::impl::state::function_failed</a></div><div class="ttdeci">@ function_failed</div><div class="ttdoc">Function execution failed.</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a5211f4c8c2f07672ad5ca4557bcf4cdc"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a5211f4c8c2f07672ad5ca4557bcf4cdc">cbdc::parsec::agent::impl::exec</a></div><div class="ttdeci">auto exec() -> bool override</div><div class="ttdoc">Initiates function execution.</div><div class="ttdef"><b>Definition</b> <a href="agent_2impl_8cpp_source.html#l00038">agent/impl.cpp:38</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a560322b7819af49f36be858267720039"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a560322b7819af49f36be858267720039">cbdc::parsec::agent::impl::get_state</a></div><div class="ttdeci">auto get_state() const -> state</div><div class="ttdoc">Return the state of the ticket.</div><div class="ttdef"><b>Definition</b> <a href="agent_2impl_8cpp_source.html#l00673">agent/impl.cpp:673</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a8a9068f0c0db333285f02479e79b63bf"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a8a9068f0c0db333285f02479e79b63bf">cbdc::parsec::agent::impl::impl</a></div><div class="ttdeci">impl(std::shared_ptr< logging::log > logger, cbdc::parsec::config cfg, runner::interface::factory_type runner_factory, std::shared_ptr< broker::interface > broker, runtime_locking_shard::key_type function, parameter_type param, exec_callback_type result_callback, broker::lock_type initial_lock_type, bool is_readonly_run, std::shared_ptr< secp256k1_context > secp, std::shared_ptr< thread_pool > t_pool)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition</b> <a href="agent_2impl_8cpp_source.html#l00014">agent/impl.cpp:14</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a8ff0b5c1cd95988b9225f0000867c8c6"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a8ff0b5c1cd95988b9225f0000867c8c6">cbdc::parsec::agent::impl::operator=</a></div><div class="ttdeci">auto operator=(const impl &) -> impl &=delete</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_a90c9b813739f985d0ba64253e47a8043"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#a90c9b813739f985d0ba64253e47a8043">cbdc::parsec::agent::impl::impl</a></div><div class="ttdeci">impl(const impl &)=delete</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_aa100fe761a417db8c5a32f6d26848f7e"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#aa100fe761a417db8c5a32f6d26848f7e">cbdc::parsec::agent::impl::~impl</a></div><div class="ttdeci">~impl() override</div><div class="ttdoc">Ensures function execution is complete before destruction.</div><div class="ttdef"><b>Definition</b> <a href="agent_2impl_8cpp_source.html#l00657">agent/impl.cpp:657</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_ad5fa4b44d55803dc20984349791800ee"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#ad5fa4b44d55803dc20984349791800ee">cbdc::parsec::agent::impl::get_ticket_number</a></div><div class="ttdeci">auto get_ticket_number() const -> std::optional< ticket_machine::ticket_number_type ></div><div class="ttdoc">Returns the ticket number associated with this agent, if available.</div><div class="ttdef"><b>Definition</b> <a href="agent_2impl_8cpp_source.html#l00667">agent/impl.cpp:667</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1impl_html_aff5cb92a5b0763873f229e168b3a5d2c"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1impl.html#aff5cb92a5b0763873f229e168b3a5d2c">cbdc::parsec::agent::impl::operator=</a></div><div class="ttdeci">auto operator=(impl &&) -> impl &=delete</div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1interface_html"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1interface.html">cbdc::parsec::agent::interface</a></div><div class="ttdoc">Interface for an agent.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2interface_8hpp_source.html#l00019">parsec/agent/interface.hpp:19</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1interface_html_a9480778dec29a2f0f68c38807ca5ccfe"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1interface.html#a9480778dec29a2f0f68c38807ca5ccfe">cbdc::parsec::agent::interface::exec_return_type</a></div><div class="ttdeci">std::variant< return_type, error_code > exec_return_type</div><div class="ttdoc">Return type from function execution.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2interface_8hpp_source.html#l00050">parsec/agent/interface.hpp:50</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1interface_html_ac7681a694f8b68874429f47874408c67"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1interface.html#ac7681a694f8b68874429f47874408c67">cbdc::parsec::agent::interface::exec_callback_type</a></div><div class="ttdeci">std::function< void(exec_return_type)> exec_callback_type</div><div class="ttdoc">Callback function type with function execution result.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2interface_8hpp_source.html#l00052">parsec/agent/interface.hpp:52</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1runner_1_1interface_html_a873918bc570092134d0e4ea3836f658c"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1runner_1_1interface.html#a873918bc570092134d0e4ea3836f658c">cbdc::parsec::agent::runner::interface::factory_type</a></div><div class="ttdeci">std::function< std::unique_ptr< interface >( std::shared_ptr< logging::log > logger, const cbdc::parsec::config &cfg, runtime_locking_shard::value_type function, parameter_type param, bool is_readonly_run, runner::interface::run_callback_type result_callback, runner::interface::try_lock_callback_type try_lock_callback, std::shared_ptr< secp256k1_context >, std::shared_ptr< thread_pool > t_pool, ticket_number_type ticket_number)> factory_type</div><div class="ttdoc">Factory function type for instantiating new runners.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2runners_2interface_8hpp_source.html#l00067">parsec/agent/runners/interface.hpp:67</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1agent_1_1runner_1_1interface_html_ab8fad94fc48dece44342f3e8c84a9dba"><div class="ttname"><a href="classcbdc_1_1parsec_1_1agent_1_1runner_1_1interface.html#ab8fad94fc48dece44342f3e8c84a9dba">cbdc::parsec::agent::runner::interface::run_return_type</a></div><div class="ttdeci">std::variant< runtime_locking_shard::state_update_type, error_code > run_return_type</div><div class="ttdoc">Return type from executing a function.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2runners_2interface_8hpp_source.html#l00054">parsec/agent/runners/interface.hpp:54</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_a7ad81d8ee6b0c0df7f8d2070b7e0d6f5"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a7ad81d8ee6b0c0df7f8d2070b7e0d6f5">cbdc::parsec::broker::interface::try_lock_return_type</a></div><div class="ttdeci">std::variant< value_type, error_code, runtime_locking_shard::shard_error > try_lock_return_type</div><div class="ttdoc">Return type from a try lock operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00100">parsec/broker/interface.hpp:100</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_a84a4667edd4b6feaf9f16227ac3714c0"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a84a4667edd4b6feaf9f16227ac3714c0">cbdc::parsec::broker::interface::commit_return_type</a></div><div class="ttdeci">std::optional< std::variant< error_code, runtime_locking_shard::shard_error > > commit_return_type</div><div class="ttdoc">Return type from a commit operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00121">parsec/broker/interface.hpp:121</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_a8fcd3747273d7841f304d061c3abd475"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#a8fcd3747273d7841f304d061c3abd475">cbdc::parsec::broker::interface::finish_return_type</a></div><div class="ttdeci">std::optional< error_code > finish_return_type</div><div class="ttdoc">Return type from a finish operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00139">parsec/broker/interface.hpp:139</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_ae8aae36c6d735c1e1534aec4dc164f88"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#ae8aae36c6d735c1e1534aec4dc164f88">cbdc::parsec::broker::interface::ticketnum_or_errcode_type</a></div><div class="ttdeci">std::variant< ticket_number_type, error_code > ticketnum_or_errcode_type</div><div class="ttdoc">Return type from a begin operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00087">parsec/broker/interface.hpp:87</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_af68b3e8c226eaff996bd53c131f0f93f"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#af68b3e8c226eaff996bd53c131f0f93f">cbdc::parsec::broker::interface::try_lock_callback_type</a></div><div class="ttdeci">std::function< void(try_lock_return_type)> try_lock_callback_type</div><div class="ttdoc">Callback function type for a try lock operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00104">parsec/broker/interface.hpp:104</a></div></div>
<div class="ttc" id="aclasscbdc_1_1parsec_1_1broker_1_1interface_html_af8c5164208dd11fb67513f1d5f098997"><div class="ttname"><a href="classcbdc_1_1parsec_1_1broker_1_1interface.html#af8c5164208dd11fb67513f1d5f098997">cbdc::parsec::broker::interface::rollback_return_type</a></div><div class="ttdeci">std::optional< std::variant< error_code, runtime_locking_shard::error_code > > rollback_return_type</div><div class="ttdoc">Return type from a rollback operation.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00154">parsec/broker/interface.hpp:154</a></div></div>
<div class="ttc" id="alogging_8hpp_html"><div class="ttname"><a href="logging_8hpp.html">logging.hpp</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1agent_html"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1agent.html">cbdc::parsec::agent</a></div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2client_8cpp_source.html#l00011">parsec/agent/client.cpp:11</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1broker_html_a1a58afec24ea8a47bb720c8e37dc457e"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1broker.html#a1a58afec24ea8a47bb720c8e37dc457e">cbdc::parsec::broker::value_type</a></div><div class="ttdeci">runtime_locking_shard::value_type value_type</div><div class="ttdoc">Shard value type.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00018">parsec/broker/interface.hpp:18</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1broker_html_a63524410a095b015191a2d57a93a9bab"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1broker.html#a63524410a095b015191a2d57a93a9bab">cbdc::parsec::broker::key_type</a></div><div class="ttdeci">runtime_locking_shard::key_type key_type</div><div class="ttdoc">Shard key type.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00016">parsec/broker/interface.hpp:16</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1broker_html_a635e308bb8a7beaf169282b11f4ad340"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1broker.html#a635e308bb8a7beaf169282b11f4ad340">cbdc::parsec::broker::held_locks_set_type</a></div><div class="ttdeci">std:: unordered_map< key_type, lock_type, hashing::const_sip_hash< key_type > > held_locks_set_type</div><div class="ttdoc">Set of held locks.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00024">parsec/broker/interface.hpp:24</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1broker_html_ac3ea914b78c4a158376a9d8c5b80c6fa"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1broker.html#ac3ea914b78c4a158376a9d8c5b80c6fa">cbdc::parsec::broker::lock_type</a></div><div class="ttdeci">runtime_locking_shard::lock_type lock_type</div><div class="ttdoc">Shard lock type.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2broker_2interface_8hpp_source.html#l00022">parsec/broker/interface.hpp:22</a></div></div>
<div class="ttc" id="anamespacecbdc_1_1parsec_1_1runtime__locking__shard_html_af6d0adbce827f930d52e6c4d9e18851a"><div class="ttname"><a href="namespacecbdc_1_1parsec_1_1runtime__locking__shard.html#af6d0adbce827f930d52e6c4d9e18851a">cbdc::parsec::runtime_locking_shard::lock_type</a></div><div class="ttdeci">lock_type</div><div class="ttdoc">Types of key lock supported by shards.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2runtime__locking__shard_2interface_8hpp_source.html#l00031">parsec/runtime_locking_shard/interface.hpp:31</a></div></div>
<div class="ttc" id="anamespacecbdc_html"><div class="ttname"><a href="namespacecbdc.html">cbdc</a></div><div class="ttdef"><b>Definition</b> <a href="parsec_2agent_2client_8cpp_source.html#l00011">parsec/agent/client.cpp:11</a></div></div>
<div class="ttc" id="aparsec_2agent_2interface_8hpp_html"><div class="ttname"><a href="parsec_2agent_2interface_8hpp.html">interface.hpp</a></div></div>
<div class="ttc" id="aparsec_2agent_2runners_2interface_8hpp_html"><div class="ttname"><a href="parsec_2agent_2runners_2interface_8hpp.html">interface.hpp</a></div></div>
<div class="ttc" id="aparsec_2broker_2interface_8hpp_html"><div class="ttname"><a href="parsec_2broker_2interface_8hpp.html">interface.hpp</a></div></div>
<div class="ttc" id="astructcbdc_1_1parsec_1_1config_html"><div class="ttname"><a href="structcbdc_1_1parsec_1_1config.html">cbdc::parsec::config</a></div><div class="ttdoc">Configuration parameters for a phase two system.</div><div class="ttdef"><b>Definition</b> <a href="parsec_2util_8hpp_source.html#l00031">parsec/util.hpp:31</a></div></div>
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_3cce81556147031cc47c784f481d4a07.html">parsec</a></li><li class="navelem"><a class="el" href="dir_cac327df0857ffcd3b3be3d64544de41.html">agent</a></li><li class="navelem"><a class="el" href="agent_2impl_8hpp.html">impl.hpp</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.12.0 </li>
</ul>
</div>
</body>
</html>