blob: 57539748fd3d9745e7fcfc51fe3bd67f2141ef05 [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.9.0/cppdoc/binary__type_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>&nbsp; Apache Ignite C++: binary_type.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">&nbsp; 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_type.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="binary__type_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="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_TYPE</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#define _IGNITE_BINARY_BINARY_TYPE</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;stdint.h&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 &lt;ignite/impl/binary/binary_type_impl.h&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a8101324f081e18e688069efcaf87ba4c"> 37</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_TYPE_START(T) \</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">template&lt;&gt; \</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">struct BinaryType&lt;T&gt; \</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">{</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a4ef31d9795632c1ea5d32f7d31167fc2"> 46</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_TYPE_END \</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">};</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="binary__type_8h.html#ab3365b656beaf4609a3f1475180da95c"> 53</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_TYPE_ID_AS_CONST(id) \</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">static int32_t GetTypeId() \</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor"> return id; \</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a7991ce3e024e835e03bfe9b504103fec"> 63</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_TYPE_ID_AS_HASH(typeName) \</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">static int32_t GetTypeId() \</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor"> return GetBinaryStringHashCode(#typeName); \</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a68d1c799cef1088bf1e670a44f0827c4"> 73</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_TYPE_NAME_AS_IS(typeName) \</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="preprocessor">static void GetTypeName(std::string&amp; dst) \</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor"> dst = #typeName; \</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="binary__type_8h.html#acf83eb25907f65b729ec0a1b24208bec"> 83</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_FIELD_ID_AS_HASH \</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="preprocessor">static int32_t GetFieldId(const char* name) \</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="preprocessor"> return GetBinaryStringHashCode(name); \</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a53931f11f339e64ac02c6d6acf60956a"> 93</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_IS_NULL_FALSE(T) \</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="preprocessor">static bool IsNull(const T&amp;) \</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="preprocessor"> return false; \</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a2e9baf94400149fcc246e9f1e5bdd72d"> 103</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_IS_NULL_IF_NULLPTR(T) \</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="preprocessor">static bool IsNull(const T&amp; obj) \</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="preprocessor"> return obj; \</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a5cf312bee01a8adbff52c1272a0f1240"> 113</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_NULL_DEFAULT_CTOR(T) \</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor">static void GetNull(T&amp; dst) \</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="preprocessor"> dst = T(); \</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a194a06e90389998d69b87e675473da78"> 123</a></span>&#160;<span class="preprocessor">#define IGNITE_BINARY_GET_NULL_NULLPTR(T) \</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="preprocessor">static void GetNull(T&amp; dst) \</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="preprocessor">{ \</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="preprocessor"> dst = 0; \</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="preprocessor">}</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;{</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">namespace </span>binary</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">class </span>BinaryWriter;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">class </span>BinaryReader;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; IGNITE_IMPORT_EXPORT int32_t <a class="code" href="namespaceignite_1_1binary.html#ac93fb79680cc0baff9d1d6bd6e44139a">GetBinaryStringHashCode</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* val);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType.html"> 149</a></span>&#160; <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT <a class="code" href="structignite_1_1binary_1_1BinaryType.html">BinaryType</a> { };</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html"> 155</a></span>&#160; <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT <a class="code" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html">BinaryTypeDefaultHashing</a></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; {</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#ac3683babcd47fdb98eec4ccbd7277e07"> 162</a></span>&#160; <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#ac3683babcd47fdb98eec4ccbd7277e07">GetTypeId</a>()</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; {</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; std::string typeName;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="structignite_1_1binary_1_1BinaryType.html">BinaryType&lt;T&gt;::GetTypeName</a>(typeName);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceignite_1_1binary.html#ac93fb79680cc0baff9d1d6bd6e44139a">GetBinaryStringHashCode</a>(typeName.c_str());</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#a5e50154d673c1dd26f34e6f614e99fb2"> 176</a></span>&#160; <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#a5e50154d673c1dd26f34e6f614e99fb2">GetFieldId</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceignite_1_1binary.html#ac93fb79680cc0baff9d1d6bd6e44139a">GetBinaryStringHashCode</a>(name);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; }</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; };</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html"> 186</a></span>&#160; <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT <a class="code" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html">BinaryTypeNonNullableType</a></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; {</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a0f73358c22c10ec3af4028a6d21217a5"> 193</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a0f73358c22c10ec3af4028a6d21217a5">IsNull</a>(<span class="keyword">const</span> T&amp;)</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a1f8b4d4d9698afa0b61f896f7a1c13f2"> 203</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a1f8b4d4d9698afa0b61f896f7a1c13f2">GetNull</a>(T&amp; dst)</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; {</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; dst = T();</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; }</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; };</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryTypeDefaultAll.html"> 213</a></span>&#160; <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT <a class="code" href="structignite_1_1binary_1_1BinaryTypeDefaultAll.html">BinaryTypeDefaultAll</a> :</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <a class="code" href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html">BinaryTypeDefaultHashing</a>&lt;T&gt;,</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="code" href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html">BinaryTypeNonNullableType</a>&lt;T&gt; { };</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html"> 221</a></span>&#160; <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT BinaryType&lt;T*&gt;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; {</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a6af48dd63474d8baf2756192597e9c10"> 224</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="structignite_1_1binary_1_1BinaryType.html">BinaryType&lt;T&gt;</a> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a6af48dd63474d8baf2756192597e9c10">BinaryTypeDereferenced</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#af06fde45e4c80bf09031f0be664a709a"> 231</a></span>&#160; <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#af06fde45e4c80bf09031f0be664a709a">GetTypeId</a>()</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">return</span> BinaryTypeDereferenced::GetTypeId();</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; }</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#aed708babe7fb5738ddf279b761d0bd81"> 241</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#aed708babe7fb5738ddf279b761d0bd81">GetTypeName</a>(std::string&amp; dst)</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; {</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; BinaryTypeDereferenced::GetTypeName(dst);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; }</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad8be0fd758fe0bfcf7c0b71d9711f9a1"> 252</a></span>&#160; <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad8be0fd758fe0bfcf7c0b71d9711f9a1">GetFieldId</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; {</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keywordflow">return</span> BinaryTypeDereferenced::GetFieldId(name);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; }</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad2c59bccd13eab66011d394e438b5101"> 263</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad2c59bccd13eab66011d394e438b5101">Write</a>(<a class="code" href="classignite_1_1binary_1_1BinaryWriter.html">BinaryWriter</a>&amp; writer, T* <span class="keyword">const</span>&amp; obj)</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; {</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; BinaryTypeDereferenced::Write(writer, *obj);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; }</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a17c61a2b4e2955f7578f88bbfe1045f9"> 274</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a17c61a2b4e2955f7578f88bbfe1045f9">Read</a>(<a class="code" href="classignite_1_1binary_1_1BinaryReader.html">BinaryReader</a>&amp; reader, T*&amp; dst)</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; {</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; dst = <span class="keyword">new</span> T();</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; BinaryTypeDereferenced::Read(reader, *dst);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; }</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#adf3622c741061c74d00fc20dbbcb2dfd"> 287</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#adf3622c741061c74d00fc20dbbcb2dfd">IsNull</a>(T* <span class="keyword">const</span>&amp; obj)</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; {</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <span class="keywordflow">return</span> !obj || BinaryTypeDereferenced::IsNull(*obj);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; }</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a7c29fef8e7ecbdb46c815b3cf4d97608"> 297</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a7c29fef8e7ecbdb46c815b3cf4d97608">GetNull</a>(T*&amp; dst)</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; {</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; dst = 0;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; }</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; };</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; }</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160;}</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<span class="preprocessor">#endif //_IGNITE_BINARY_BINARY_TYPE</span></div><div class="ttc" id="namespaceignite_1_1binary_html_ac93fb79680cc0baff9d1d6bd6e44139a"><div class="ttname"><a href="namespaceignite_1_1binary.html#ac93fb79680cc0baff9d1d6bd6e44139a">ignite::binary::GetBinaryStringHashCode</a></div><div class="ttdeci">IGNITE_IMPORT_EXPORT int32_t GetBinaryStringHashCode(const char *val)</div><div class="ttdoc">Get binary string hash code. </div><div class="ttdef"><b>Definition:</b> binary_type.cpp:24</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_af06fde45e4c80bf09031f0be664a709a"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#af06fde45e4c80bf09031f0be664a709a">ignite::binary::BinaryType&lt; T *&gt;::GetTypeId</a></div><div class="ttdeci">static int32_t GetTypeId()</div><div class="ttdoc">Get binary object type ID. </div><div class="ttdef"><b>Definition:</b> binary_type.h:231</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_adf3622c741061c74d00fc20dbbcb2dfd"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#adf3622c741061c74d00fc20dbbcb2dfd">ignite::binary::BinaryType&lt; T *&gt;::IsNull</a></div><div class="ttdeci">static bool IsNull(T *const &amp;obj)</div><div class="ttdoc">Check whether passed binary object should be interpreted as NULL. </div><div class="ttdef"><b>Definition:</b> binary_type.h:287</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeDefaultHashing_html"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html">ignite::binary::BinaryTypeDefaultHashing</a></div><div class="ttdoc">Default implementations of BinaryType hashing functions. </div><div class="ttdef"><b>Definition:</b> binary_type.h:155</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeDefaultHashing_html_a5e50154d673c1dd26f34e6f614e99fb2"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#a5e50154d673c1dd26f34e6f614e99fb2">ignite::binary::BinaryTypeDefaultHashing::GetFieldId</a></div><div class="ttdeci">static int32_t GetFieldId(const char *name)</div><div class="ttdoc">Get binary object field ID. </div><div class="ttdef"><b>Definition:</b> binary_type.h:176</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeNonNullableType_html_a1f8b4d4d9698afa0b61f896f7a1c13f2"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a1f8b4d4d9698afa0b61f896f7a1c13f2">ignite::binary::BinaryTypeNonNullableType::GetNull</a></div><div class="ttdeci">static void GetNull(T &amp;dst)</div><div class="ttdoc">Get NULL value for the given binary type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:203</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html">ignite::binary::BinaryWriter</a></div><div class="ttdoc">Binary writer. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:51</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_a17c61a2b4e2955f7578f88bbfe1045f9"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a17c61a2b4e2955f7578f88bbfe1045f9">ignite::binary::BinaryType&lt; T *&gt;::Read</a></div><div class="ttdeci">static void Read(BinaryReader &amp;reader, T *&amp;dst)</div><div class="ttdoc">Read binary object. </div><div class="ttdef"><b>Definition:</b> binary_type.h:274</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeDefaultHashing_html_ac3683babcd47fdb98eec4ccbd7277e07"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeDefaultHashing.html#ac3683babcd47fdb98eec4ccbd7277e07">ignite::binary::BinaryTypeDefaultHashing::GetTypeId</a></div><div class="ttdeci">static int32_t GetTypeId()</div><div class="ttdoc">Get binary object type ID. </div><div class="ttdef"><b>Definition:</b> binary_type.h:162</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_aed708babe7fb5738ddf279b761d0bd81"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#aed708babe7fb5738ddf279b761d0bd81">ignite::binary::BinaryType&lt; T *&gt;::GetTypeName</a></div><div class="ttdeci">static void GetTypeName(std::string &amp;dst)</div><div class="ttdoc">Get binary object type name. </div><div class="ttdef"><b>Definition:</b> binary_type.h:241</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_ad2c59bccd13eab66011d394e438b5101"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad2c59bccd13eab66011d394e438b5101">ignite::binary::BinaryType&lt; T *&gt;::Write</a></div><div class="ttdeci">static void Write(BinaryWriter &amp;writer, T *const &amp;obj)</div><div class="ttdoc">Write binary object. </div><div class="ttdef"><b>Definition:</b> binary_type.h:263</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_html"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType.html">ignite::binary::BinaryType</a></div><div class="ttdoc">Binary type structure. </div><div class="ttdef"><b>Definition:</b> binary_type.h:149</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_a6af48dd63474d8baf2756192597e9c10"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a6af48dd63474d8baf2756192597e9c10">ignite::binary::BinaryType&lt; T *&gt;::BinaryTypeDereferenced</a></div><div class="ttdeci">BinaryType&lt; T &gt; BinaryTypeDereferenced</div><div class="ttdoc">Actual type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:224</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeNonNullableType_html_a0f73358c22c10ec3af4028a6d21217a5"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html#a0f73358c22c10ec3af4028a6d21217a5">ignite::binary::BinaryTypeNonNullableType::IsNull</a></div><div class="ttdeci">static bool IsNull(const T &amp;)</div><div class="ttdoc">Check whether passed binary object should be interpreted as NULL. </div><div class="ttdef"><b>Definition:</b> binary_type.h:193</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_ad8be0fd758fe0bfcf7c0b71d9711f9a1"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#ad8be0fd758fe0bfcf7c0b71d9711f9a1">ignite::binary::BinaryType&lt; T *&gt;::GetFieldId</a></div><div class="ttdeci">static int32_t GetFieldId(const char *name)</div><div class="ttdoc">Get binary object field ID. </div><div class="ttdef"><b>Definition:</b> binary_type.h:252</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryTypeDefaultAll_html"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeDefaultAll.html">ignite::binary::BinaryTypeDefaultAll</a></div><div class="ttdoc">Default implementations of BinaryType hashing functions and non-null type behaviour. </div><div class="ttdef"><b>Definition:</b> binary_type.h:213</div></div>
<div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4_html_a7c29fef8e7ecbdb46c815b3cf4d97608"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_4.html#a7c29fef8e7ecbdb46c815b3cf4d97608">ignite::binary::BinaryType&lt; T *&gt;::GetNull</a></div><div class="ttdeci">static void GetNull(T *&amp;dst)</div><div class="ttdoc">Get NULL value for the given binary type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:297</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="structignite_1_1binary_1_1BinaryTypeNonNullableType_html"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryTypeNonNullableType.html">ignite::binary::BinaryTypeNonNullableType</a></div><div class="ttdoc">Default implementations of BinaryType methods for non-null type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:186</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html">ignite::binary::BinaryReader</a></div><div class="ttdoc">Binary reader. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:54</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 15 2020 12:17:17 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.13
</small></address>
</body>
</html>