blob: 1f25f65257f4183601708f2e4e507cd4c934cffa [file] [log] [blame]
<!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>
<link rel="canonical" href="https://ignite.apache.org/releases/2.7.0/cppdoc/binary__raw__reader_8h_source.html" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>&nbsp; Apache Ignite C++: binary_raw_reader.h 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>
<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">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="ignite_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">&nbsp; Apache Ignite C++
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="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.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</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_88bd599177f4cc5007b9f053025b0bc5.html">binary</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">binary_raw_reader.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="binary__raw__reader_8h.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;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * this work for additional information regarding copyright ownership.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_RAW_READER</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define _IGNITE_BINARY_BINARY_RAW_READER</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ignite/common/common.h&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;ignite/impl/binary/binary_reader_impl.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="binary__consts_8h.html">ignite/binary/binary_consts.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="binary__containers_8h.html">ignite/binary/binary_containers.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="guid_8h.html">ignite/guid.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="date_8h.html">ignite/date.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="timestamp_8h.html">ignite/timestamp.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;{ </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">namespace </span>binary</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; {</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html"> 56</a></span>&#160; <span class="keyword">class </span>IGNITE_IMPORT_EXPORT <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html">BinaryRawReader</a></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html">BinaryRawReader</a>(ignite::impl::binary::BinaryReaderImpl* impl);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; int8_t ReadInt8();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; int32_t ReadInt8Array(int8_t* res, int32_t len);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordtype">bool</span> ReadBool();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; int32_t ReadBoolArray(<span class="keywordtype">bool</span>* res, int32_t len);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; int16_t ReadInt16();</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; int32_t ReadInt16Array(int16_t* res, int32_t len);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; uint16_t ReadUInt16();</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; int32_t ReadUInt16Array(uint16_t* res, int32_t len);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; int32_t ReadInt32();</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; int32_t ReadInt32Array(int32_t* res, int32_t len);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; int64_t ReadInt64();</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; int32_t ReadInt64Array(int64_t* res, int32_t len);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keywordtype">float</span> ReadFloat();</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; int32_t ReadFloatArray(<span class="keywordtype">float</span>* res, int32_t len);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordtype">double</span> ReadDouble();</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; </div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; int32_t ReadDoubleArray(<span class="keywordtype">double</span>* res, int32_t len);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <a class="code" href="classignite_1_1Guid.html">Guid</a> ReadGuid();</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; int32_t ReadGuidArray(<a class="code" href="classignite_1_1Guid.html">Guid</a>* res, int32_t len);</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <a class="code" href="classignite_1_1Date.html">Date</a> ReadDate();</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; int32_t ReadDateArray(<a class="code" href="classignite_1_1Date.html">Date</a>* res, int32_t len);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a> ReadTimestamp();</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; int32_t ReadTimestampArray(<a class="code" href="classignite_1_1Timestamp.html">Timestamp</a>* res, int32_t len);</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <a class="code" href="classignite_1_1Time.html">Time</a> ReadTime();</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; int32_t ReadTimeArray(<a class="code" href="classignite_1_1Time.html">Time</a>* res, int32_t len);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; int32_t ReadString(<span class="keywordtype">char</span>* res, int32_t len);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a2eb23ab505a347b1cddb474ba3870dbd"> 314</a></span>&#160; std::string <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a2eb23ab505a347b1cddb474ba3870dbd">ReadString</a>()</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; {</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; std::string res;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; ReadString(res);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; }</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a66037b21e59e8f7f742681d8d67fa803"> 328</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a66037b21e59e8f7f742681d8d67fa803">ReadString</a>(std::string&amp; dst)</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; {</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; int32_t len = ReadString(NULL, 0);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="keywordflow">if</span> (len != -1)</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; {</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; dst.resize(static_cast&lt;size_t&gt;(len));</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; ReadString(&amp;dst[0], len);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; }</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; dst.clear();</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; }</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryStringArrayReader.html">BinaryStringArrayReader</a> ReadStringArray();</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160;</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a34cd8d43de7d5628989a4ac523a3929a"> 355</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader&lt;T&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a34cd8d43de7d5628989a4ac523a3929a">ReadArray</a>()</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; {</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; int32_t size;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160;</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadArray(&amp;size);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader&lt;T&gt;</a>(impl, id, size);</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; }</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a9136228b20464d90da750ffdfeea2580"> 370</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader&lt;T&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a9136228b20464d90da750ffdfeea2580">ReadCollection</a>()</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; {</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> typ;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; int32_t size;</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadCollection(&amp;typ, &amp;size);</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader&lt;T&gt;</a>(impl, id, typ, size);</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; }</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> OutputIterator&gt;</div><div class="line"><a name="l00387"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#ac5374eb6292ee4e2eababfa00a1a43c8"> 387</a></span>&#160; int32_t <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#ac5374eb6292ee4e2eababfa00a1a43c8">ReadCollection</a>(OutputIterator out)</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; {</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="keywordflow">return</span> impl-&gt;ReadCollection&lt;T&gt;(out);</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; }</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160;</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt;</div><div class="line"><a name="l00398"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#aff1408c7b4012b678495d8f5078ec765"> 398</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader&lt;K, V&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#aff1408c7b4012b678495d8f5078ec765">ReadMap</a>()</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; {</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <a class="code" href="structignite_1_1binary_1_1MapType.html#a138cf8f1db233f607ea34aaa8a99b456">MapType::Type</a> typ;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; int32_t size;</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadMap(&amp;typ, &amp;size);</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader&lt;K, V&gt;</a>(impl, id, typ, size);</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; }</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160;</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> ReadCollectionType();</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; int32_t ReadCollectionSize();</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160;</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#aa3312a1b3ae760afca44f67b466c3f7c"> 428</a></span>&#160; T <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#aa3312a1b3ae760afca44f67b466c3f7c">ReadObject</a>()</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; {</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; <span class="keywordflow">return</span> impl-&gt;ReadObject&lt;T&gt;();</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; }</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160;</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#af5ff85f098aa717942108997b1abd2e2"> 443</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#af5ff85f098aa717942108997b1abd2e2">TryReadObject</a>(T&amp; res)</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160; {</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <span class="keywordflow">if</span> (impl-&gt;SkipIfNull())</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160;</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; res = impl-&gt;ReadObject&lt;T&gt;();</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160;</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; }</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160;</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; ignite::impl::binary::BinaryReaderImpl* impl; </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; };</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; }</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160;}</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160;<span class="preprocessor">#endif //_IGNITE_BINARY_BINARY_RAW_READER</span></div><div class="ttc" id="classignite_1_1Timestamp_html"><div class="ttname"><a href="classignite_1_1Timestamp.html">ignite::Timestamp</a></div><div class="ttdoc">Timestamp type. </div><div class="ttdef"><b>Definition:</b> timestamp.h:37</div></div>
<div class="ttc" id="binary__consts_8h_html"><div class="ttname"><a href="binary__consts_8h.html">binary_consts.h</a></div><div class="ttdoc">Declares specific binary constatants. </div></div>
<div class="ttc" id="classignite_1_1Date_html"><div class="ttname"><a href="classignite_1_1Date.html">ignite::Date</a></div><div class="ttdoc">Date type. </div><div class="ttdef"><b>Definition:</b> date.h:35</div></div>
<div class="ttc" id="binary__containers_8h_html"><div class="ttname"><a href="binary__containers_8h.html">binary_containers.h</a></div><div class="ttdoc">Declares binary reader and writer types for the collections. </div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryStringArrayReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryStringArrayReader.html">ignite::binary::BinaryStringArrayReader</a></div><div class="ttdoc">Binary string array reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:297</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryMapReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryMapReader.html">ignite::binary::BinaryMapReader</a></div><div class="ttdoc">Binary map reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:561</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_a9136228b20464d90da750ffdfeea2580"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#a9136228b20464d90da750ffdfeea2580">ignite::binary::BinaryRawReader::ReadCollection</a></div><div class="ttdeci">BinaryCollectionReader&lt; T &gt; ReadCollection()</div><div class="ttdoc">Start collection read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:370</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryCollectionReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryCollectionReader.html">ignite::binary::BinaryCollectionReader</a></div><div class="ttdoc">Binary collection reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:468</div></div>
<div class="ttc" id="guid_8h_html"><div class="ttname"><a href="guid_8h.html">guid.h</a></div><div class="ttdoc">Declares ignite::Guid class. </div></div>
<div class="ttc" id="timestamp_8h_html"><div class="ttname"><a href="timestamp_8h.html">timestamp.h</a></div><div class="ttdoc">Declares ignite::Timestamp class. </div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_aff1408c7b4012b678495d8f5078ec765"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#aff1408c7b4012b678495d8f5078ec765">ignite::binary::BinaryRawReader::ReadMap</a></div><div class="ttdeci">BinaryMapReader&lt; K, V &gt; ReadMap()</div><div class="ttdoc">Start map read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:398</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_ac5374eb6292ee4e2eababfa00a1a43c8"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#ac5374eb6292ee4e2eababfa00a1a43c8">ignite::binary::BinaryRawReader::ReadCollection</a></div><div class="ttdeci">int32_t ReadCollection(OutputIterator out)</div><div class="ttdoc">Read values and insert them to specified position. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:387</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_a34cd8d43de7d5628989a4ac523a3929a"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#a34cd8d43de7d5628989a4ac523a3929a">ignite::binary::BinaryRawReader::ReadArray</a></div><div class="ttdeci">BinaryArrayReader&lt; T &gt; ReadArray()</div><div class="ttdoc">Start array read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:355</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryArrayReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryArrayReader.html">ignite::binary::BinaryArrayReader</a></div><div class="ttdoc">Binary array reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:389</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_af5ff85f098aa717942108997b1abd2e2"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#af5ff85f098aa717942108997b1abd2e2">ignite::binary::BinaryRawReader::TryReadObject</a></div><div class="ttdeci">bool TryReadObject(T &amp;res)</div><div class="ttdoc">Try read object. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:443</div></div>
<div class="ttc" id="structignite_1_1binary_1_1CollectionType_html_a03610e138c65428dc81c08f62b7729bb"><div class="ttname"><a href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">ignite::binary::CollectionType::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> binary_consts.h:35</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_aa3312a1b3ae760afca44f67b466c3f7c"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#aa3312a1b3ae760afca44f67b466c3f7c">ignite::binary::BinaryRawReader::ReadObject</a></div><div class="ttdeci">T ReadObject()</div><div class="ttdoc">Read object. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:428</div></div>
<div class="ttc" id="structignite_1_1binary_1_1MapType_html_a138cf8f1db233f607ea34aaa8a99b456"><div class="ttname"><a href="structignite_1_1binary_1_1MapType.html#a138cf8f1db233f607ea34aaa8a99b456">ignite::binary::MapType::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> binary_consts.h:69</div></div>
<div class="ttc" id="classignite_1_1Time_html"><div class="ttname"><a href="classignite_1_1Time.html">ignite::Time</a></div><div class="ttdoc">Time type. </div><div class="ttdef"><b>Definition:</b> time.h:35</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_a2eb23ab505a347b1cddb474ba3870dbd"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#a2eb23ab505a347b1cddb474ba3870dbd">ignite::binary::BinaryRawReader::ReadString</a></div><div class="ttdeci">std::string ReadString()</div><div class="ttdoc">Read string from the stream. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:314</div></div>
<div class="ttc" id="classignite_1_1Guid_html"><div class="ttname"><a href="classignite_1_1Guid.html">ignite::Guid</a></div><div class="ttdoc">Global universally unique identifier (GUID). </div><div class="ttdef"><b>Definition:</b> guid.h:36</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html_a66037b21e59e8f7f742681d8d67fa803"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#a66037b21e59e8f7f742681d8d67fa803">ignite::binary::BinaryRawReader::ReadString</a></div><div class="ttdeci">void ReadString(std::string &amp;dst)</div><div class="ttdoc">Read string from the stream. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:328</div></div>
<div class="ttc" id="namespaceignite_html"><div class="ttname"><a href="namespaceignite.html">ignite</a></div><div class="ttdoc">Apache Ignite API. </div><div class="ttdef"><b>Definition:</b> cache.h:48</div></div>
<div class="ttc" id="date_8h_html"><div class="ttname"><a href="date_8h.html">date.h</a></div><div class="ttdoc">Declares ignite::Date class. </div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html">ignite::binary::BinaryRawReader</a></div><div class="ttdoc">Binary raw reader. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:56</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Nov 30 2018 20:09:21 for &nbsp; Apache Ignite C++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>