| <!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.6.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.11"/> |
| <title> 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> |
| <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"> 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 Page</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 List</span></a></li> |
| <li><a href="globals.html"><span>File 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_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> <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="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_TYPE</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define _IGNITE_BINARY_BINARY_TYPE</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <stdint.h></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_type_impl.h></span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a8101324f081e18e688069efcaf87ba4c"> 37</a></span> <span class="preprocessor">#define IGNITE_BINARY_TYPE_START(T) \</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">template<> \</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">struct BinaryType<T> \</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">{</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a4ef31d9795632c1ea5d32f7d31167fc2"> 46</a></span> <span class="preprocessor">#define IGNITE_BINARY_TYPE_END \</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">};</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="binary__type_8h.html#ab3365b656beaf4609a3f1475180da95c"> 53</a></span> <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> <span class="preprocessor">static int32_t GetTypeId() \</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"> return id; \</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a7991ce3e024e835e03bfe9b504103fec"> 63</a></span> <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> <span class="preprocessor">static int32_t GetTypeId() \</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor"> return GetBinaryStringHashCode(#typeName); \</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a68d1c799cef1088bf1e670a44f0827c4"> 73</a></span> <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> <span class="preprocessor">static void GetTypeName(std::string& dst) \</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor"> dst = #typeName; \</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="binary__type_8h.html#acf83eb25907f65b729ec0a1b24208bec"> 83</a></span> <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> <span class="preprocessor">static int32_t GetFieldId(const char* name) \</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor"> return GetBinaryStringHashCode(name); \</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a53931f11f339e64ac02c6d6acf60956a"> 93</a></span> <span class="preprocessor">#define IGNITE_BINARY_IS_NULL_FALSE(T) \</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">static bool IsNull(const T& obj) \</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor"> return false; \</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a2e9baf94400149fcc246e9f1e5bdd72d"> 103</a></span> <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> <span class="preprocessor">static bool IsNull(const T& obj) \</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="preprocessor"> return obj; \</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a5cf312bee01a8adbff52c1272a0f1240"> 113</a></span> <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> <span class="preprocessor">static void GetNull(T& dst) \</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor"> dst = T(); \</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="binary__type_8h.html#a194a06e90389998d69b87e675473da78"> 123</a></span> <span class="preprocessor">#define IGNITE_BINARY_GET_NULL_NULLPTR(T) \</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">static void GetNull(T& dst) \</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor">{ \</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor"> dst = 0; \</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor">}</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <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> {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">namespace </span>binary</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">class </span>BinaryWriter;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">class </span>BinaryReader;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  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> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType.html"> 149</a></span>  <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> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html"> 155</a></span>  <span class="keyword">struct </span>IGNITE_IMPORT_EXPORT BinaryType<T*></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a050cc894615dd3813942ef2ea21f11fc"> 158</a></span>  <span class="keyword">typedef</span> <a class="code" href="structignite_1_1binary_1_1BinaryType.html">BinaryType<T></a> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a050cc894615dd3813942ef2ea21f11fc">BinaryTypeDereferenced</a>;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a73dff8aee56a39ca8abefba2ff6bdcb2"> 165</a></span>  <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a73dff8aee56a39ca8abefba2ff6bdcb2">GetTypeId</a>()</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">return</span> BinaryTypeDereferenced::GetTypeId();</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a1ee2fabcdd0d7422bd52781401b6a5f5"> 175</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a1ee2fabcdd0d7422bd52781401b6a5f5">GetTypeName</a>(std::string& dst)</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  BinaryTypeDereferenced::GetTypeName(dst);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a150c5152f3d71fedcd52d4f2717e0c09"> 186</a></span>  <span class="keyword">static</span> int32_t <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a150c5152f3d71fedcd52d4f2717e0c09">GetFieldId</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  {</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">return</span> BinaryTypeDereferenced::GetFieldId(name);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  }</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a71b97ab4fc7349446f9cfac3ad7eb6f1"> 197</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a71b97ab4fc7349446f9cfac3ad7eb6f1">Write</a>(<a class="code" href="classignite_1_1binary_1_1BinaryWriter.html">BinaryWriter</a>& writer, T* <span class="keyword">const</span>& obj)</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  BinaryTypeDereferenced::Write(writer, *obj);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a0b62281ae3b1ad8af8f4bf935381edb0"> 208</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a0b62281ae3b1ad8af8f4bf935381edb0">Read</a>(<a class="code" href="classignite_1_1binary_1_1BinaryReader.html">BinaryReader</a>& reader, T*& dst)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  dst = <span class="keyword">new</span> T();</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  BinaryTypeDereferenced::Read(reader, *dst);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a5efa432412c12e6ec8f92e55c602f889"> 221</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a5efa432412c12e6ec8f92e55c602f889">IsNull</a>(T* <span class="keyword">const</span>& obj)</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  {</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">return</span> !obj || BinaryTypeDereferenced::IsNull(*obj);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  }</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a7deeb22e27422d19c071a40cec016aed"> 231</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a7deeb22e27422d19c071a40cec016aed">GetNull</a>(T*& dst)</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  dst = 0;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  };</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> </div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor">#endif //_IGNITE_BINARY_BINARY_TYPE</span></div><div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4_html_a7deeb22e27422d19c071a40cec016aed"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a7deeb22e27422d19c071a40cec016aed">ignite::binary::BinaryType< T * >::GetNull</a></div><div class="ttdeci">static void GetNull(T *&dst)</div><div class="ttdoc">Get NULL value for the given binary type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:231</div></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_01_4_html_a73dff8aee56a39ca8abefba2ff6bdcb2"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a73dff8aee56a39ca8abefba2ff6bdcb2">ignite::binary::BinaryType< T * >::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:165</div></div> |
| <div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4_html_a050cc894615dd3813942ef2ea21f11fc"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a050cc894615dd3813942ef2ea21f11fc">ignite::binary::BinaryType< T * >::BinaryTypeDereferenced</a></div><div class="ttdeci">BinaryType< T > BinaryTypeDereferenced</div><div class="ttdoc">Actual type. </div><div class="ttdef"><b>Definition:</b> binary_type.h:158</div></div> |
| <div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4_html_a150c5152f3d71fedcd52d4f2717e0c09"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a150c5152f3d71fedcd52d4f2717e0c09">ignite::binary::BinaryType< T * >::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:186</div></div> |
| <div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4_html_a5efa432412c12e6ec8f92e55c602f889"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a5efa432412c12e6ec8f92e55c602f889">ignite::binary::BinaryType< T * >::IsNull</a></div><div class="ttdeci">static bool IsNull(T *const &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:221</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_01_4_html_a1ee2fabcdd0d7422bd52781401b6a5f5"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a1ee2fabcdd0d7422bd52781401b6a5f5">ignite::binary::BinaryType< T * >::GetTypeName</a></div><div class="ttdeci">static void GetTypeName(std::string &dst)</div><div class="ttdoc">Get binary object type name. </div><div class="ttdef"><b>Definition:</b> binary_type.h:175</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_01_4_html_a0b62281ae3b1ad8af8f4bf935381edb0"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a0b62281ae3b1ad8af8f4bf935381edb0">ignite::binary::BinaryType< T * >::Read</a></div><div class="ttdeci">static void Read(BinaryReader &reader, T *&dst)</div><div class="ttdoc">Read binary object. </div><div class="ttdef"><b>Definition:</b> binary_type.h:208</div></div> |
| <div class="ttc" id="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4_html_a71b97ab4fc7349446f9cfac3ad7eb6f1"><div class="ttname"><a href="structignite_1_1binary_1_1BinaryType_3_01T_01_5_01_4.html#a71b97ab4fc7349446f9cfac3ad7eb6f1">ignite::binary::BinaryType< T * >::Write</a></div><div class="ttdeci">static void Write(BinaryWriter &writer, T *const &obj)</div><div class="ttdoc">Write binary object. </div><div class="ttdef"><b>Definition:</b> binary_type.h:197</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="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 Tue Jul 10 2018 10:57:32 for Apache Ignite C++ by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.11 |
| </small></address> |
| </body> |
| </html> |