| <!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.8.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.13"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title> 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> |
| <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"> Apache Ignite C++ |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| </script> |
| <div id="main-nav"></div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_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> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <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> <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> <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> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <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> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <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> <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> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_RAW_READER</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define _IGNITE_BINARY_BINARY_RAW_READER</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <ignite/common/common.h></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "ignite/impl/binary/binary_reader_impl.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="binary__consts_8h.html">ignite/binary/binary_consts.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="binary__containers_8h.html">ignite/binary/binary_containers.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="binary__enum__entry_8h.html">ignite/binary/binary_enum_entry.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="guid_8h.html">ignite/guid.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="date_8h.html">ignite/date.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="timestamp_8h.html">ignite/timestamp.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> { </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">namespace </span>binary</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html"> 57</a></span>  <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="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html">BinaryRawReader</a>(ignite::impl::binary::BinaryReaderImpl* impl);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  int8_t ReadInt8();</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  int32_t ReadInt8Array(int8_t* res, int32_t len);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">bool</span> ReadBool();</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  int32_t ReadBoolArray(<span class="keywordtype">bool</span>* res, int32_t len);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  int16_t ReadInt16();</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  int32_t ReadInt16Array(int16_t* res, int32_t len);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  uint16_t ReadUInt16();</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  int32_t ReadUInt16Array(uint16_t* res, int32_t len);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  int32_t ReadInt32();</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  int32_t ReadInt32Array(int32_t* res, int32_t len);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  int64_t ReadInt64();</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  int32_t ReadInt64Array(int64_t* res, int32_t len);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordtype">float</span> ReadFloat();</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  int32_t ReadFloatArray(<span class="keywordtype">float</span>* res, int32_t len);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">double</span> ReadDouble();</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  int32_t ReadDoubleArray(<span class="keywordtype">double</span>* res, int32_t len);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="classignite_1_1Guid.html">Guid</a> ReadGuid();</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  int32_t ReadGuidArray(<a class="code" href="classignite_1_1Guid.html">Guid</a>* res, int32_t len);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="classignite_1_1Date.html">Date</a> ReadDate();</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  int32_t ReadDateArray(<a class="code" href="classignite_1_1Date.html">Date</a>* res, int32_t len);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a> ReadTimestamp();</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  int32_t ReadTimestampArray(<a class="code" href="classignite_1_1Timestamp.html">Timestamp</a>* res, int32_t len);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="classignite_1_1Time.html">Time</a> ReadTime();</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  int32_t ReadTimeArray(<a class="code" href="classignite_1_1Time.html">Time</a>* res, int32_t len);</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  int32_t ReadString(<span class="keywordtype">char</span>* res, int32_t len);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div><div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a2eb23ab505a347b1cddb474ba3870dbd"> 315</a></span>  std::string <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a2eb23ab505a347b1cddb474ba3870dbd">ReadString</a>()</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  {</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  std::string res;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  ReadString(res);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  }</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a66037b21e59e8f7f742681d8d67fa803"> 329</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a66037b21e59e8f7f742681d8d67fa803">ReadString</a>(std::string& dst)</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  int32_t len = ReadString(NULL, 0);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">if</span> (len != -1)</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  {</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  dst.resize(static_cast<size_t>(len));</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  ReadString(&dst[0], len);</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  }</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  dst.clear();</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <a class="code" href="classignite_1_1binary_1_1BinaryStringArrayReader.html">BinaryStringArrayReader</a> ReadStringArray();</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <a class="code" href="classignite_1_1binary_1_1BinaryEnumEntry.html">BinaryEnumEntry</a> ReadBinaryEnum();</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a34cd8d43de7d5628989a4ac523a3929a"> 373</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader<T></a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a34cd8d43de7d5628989a4ac523a3929a">ReadArray</a>()</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  {</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  int32_t size;</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> </div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  int32_t <span class="keywordtype">id</span> = impl->ReadArray(&size);</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader<T></a>(impl, id, size);</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  }</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#a9136228b20464d90da750ffdfeea2580"> 393</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader<T></a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#a9136228b20464d90da750ffdfeea2580">ReadCollection</a>()</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  {</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> typ;</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  int32_t size;</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  int32_t <span class="keywordtype">id</span> = impl->ReadCollection(&typ, &size);</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader<T></a>(impl, id, typ, size);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T, <span class="keyword">typename</span> OutputIterator></div><div class="line"><a name="l00410"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#ac5374eb6292ee4e2eababfa00a1a43c8"> 410</a></span>  int32_t <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#ac5374eb6292ee4e2eababfa00a1a43c8">ReadCollection</a>(OutputIterator out)</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  {</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keywordflow">return</span> impl->ReadCollection<T>(out);</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  }</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span> </div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keyword">template</span><<span class="keyword">typename</span> K, <span class="keyword">typename</span> V></div><div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#aff1408c7b4012b678495d8f5078ec765"> 426</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader<K, V></a> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#aff1408c7b4012b678495d8f5078ec765">ReadMap</a>()</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  {</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <a class="code" href="structignite_1_1binary_1_1MapType.html#a138cf8f1db233f607ea34aaa8a99b456">MapType::Type</a> typ;</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  int32_t size;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> </div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  int32_t <span class="keywordtype">id</span> = impl->ReadMap(&typ, &size);</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader<K, V></a>(impl, id, typ, size);</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  }</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> ReadCollectionType();</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  int32_t ReadCollectionSize();</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00458"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#aa3312a1b3ae760afca44f67b466c3f7c"> 458</a></span>  T <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#aa3312a1b3ae760afca44f67b466c3f7c">ReadObject</a>()</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  {</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="keywordflow">return</span> impl->ReadObject<T>();</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  }</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#aa1a78423d2fb1456c383e7f0f7ad01b0"> 471</a></span>  T <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#aa1a78423d2fb1456c383e7f0f7ad01b0">ReadEnum</a>()</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  {</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">return</span> impl->ReadEnum<T>();</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  }</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> </div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00486"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryRawReader.html#af5ff85f098aa717942108997b1abd2e2"> 486</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html#af5ff85f098aa717942108997b1abd2e2">TryReadObject</a>(T& res)</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  {</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keywordflow">if</span> (impl->SkipIfNull())</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  res = impl->ReadObject<T>();</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  }</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> </div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  ignite::impl::binary::BinaryReaderImpl* impl; </div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  };</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  }</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> }</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <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< T > ReadCollection()</div><div class="ttdoc">Start collection read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:393</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< K, V > ReadMap()</div><div class="ttdoc">Start map read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:426</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:410</div></div> |
| <div class="ttc" id="binary__enum__entry_8h_html"><div class="ttname"><a href="binary__enum__entry_8h.html">binary_enum_entry.h</a></div><div class="ttdoc">Declares ignite::binary::BinaryEnumEntry class. </div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryEnumEntry_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryEnumEntry.html">ignite::binary::BinaryEnumEntry</a></div><div class="ttdoc">Binary enum entry. </div><div class="ttdef"><b>Definition:</b> binary_enum_entry.h:39</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< T > ReadArray()</div><div class="ttdoc">Start array read. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:373</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 &res)</div><div class="ttdoc">Try read object. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:486</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:458</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:315</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_aa1a78423d2fb1456c383e7f0f7ad01b0"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html#aa1a78423d2fb1456c383e7f0f7ad01b0">ignite::binary::BinaryRawReader::ReadEnum</a></div><div class="ttdeci">T ReadEnum()</div><div class="ttdoc">Read enum value. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:471</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 &dst)</div><div class="ttdoc">Read string from the stream. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:329</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:57</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Thu Feb 27 2020 14:01:14 for Apache Ignite C++ by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.13 |
| </small></address> |
| </body> |
| </html> |