http://git-wip-us.apache.org/repos/asf/qpid-site/blob/627da724/content/releases/qpid-proton-master/proton/cpp/api/data_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-proton-master/proton/cpp/api/data_8hpp_source.html b/content/releases/qpid-proton-master/proton/cpp/api/data_8hpp_source.html index bb588fd..1351691 100755 --- a/content/releases/qpid-proton-master/proton/cpp/api/data_8hpp_source.html +++ b/content/releases/qpid-proton-master/proton/cpp/api/data_8hpp_source.html @@ -4,7 +4,7 @@ <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.10"/> -<title>Qpid Proton C++ API: proton/data.hpp Source File</title> +<title>Qpid Proton C++ API: proton/codec/data.hpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> @@ -93,132 +93,130 @@ $(document).ready(function(){initNavTree('data_8hpp_source.html','');}); <div class="title">data.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="data_8hpp.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="preprocessor">#ifndef PROTON_DATA_HPP</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define PROTON_DATA_HPP</span></div> +<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef PROTON_CODEC_DATA_HPP</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define PROTON_CODEC_DATA_HPP</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/*</span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * distributed with this work for additional information</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * software distributed under the License is distributed on an</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * specific language governing permissions and limitations</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * under the License.</span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <proton/object.hpp></span></div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="types__fwd_8hpp.html">proton/types_fwd.hpp</a>></span></div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="type__id_8hpp.html">proton/type_id.hpp</a>></span></div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * distributed with this work for additional information</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software distributed under the License is distributed on an</span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * specific language governing permissions and limitations</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * under the License.</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "proton/internal/object.hpp"</span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="types__fwd_8hpp.html">proton/types_fwd.hpp</a>"</span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="type__id_8hpp.html">proton/type_id.hpp</a>"</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="keyword">struct </span>pn_data_t;</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="keyword">namespace </span><a class="code" href="namespaceproton.html">proton</a> {</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">class </span>value;</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span>codec {</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> -<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classproton_1_1codec_1_1data.html"> 44</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1codec_1_1data.html">data</a> : <span class="keyword">public</span> internal::object<pn_data_t> {</div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">public</span>:</div> -<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classproton_1_1codec_1_1data.html#aa3f101f08b701a1320781fec0ff23417"> 47</a></span>  <a class="code" href="classproton_1_1codec_1_1data.html#aa3f101f08b701a1320781fec0ff23417">data</a>(pn_data_t* d=0) : internal::object<pn_data_t>(d) {}</div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  PN_CPP_EXTERN <span class="keyword">static</span> <a class="code" href="classproton_1_1codec_1_1data.html">data</a> <a class="code" href="classproton_1_1codec_1_1data.html#ae954badb9bd793d1616544c6dedec60c">create</a>();</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> <a class="code" href="classproton_1_1codec_1_1data.html#aad84d11869f8165c7fd3db0a6546beb5">copy</a>(<span class="keyword">const</span> <a class="code" href="classproton_1_1codec_1_1data.html">data</a>&);</div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> <a class="code" href="classproton_1_1codec_1_1data.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a>();</div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> <a class="code" href="classproton_1_1codec_1_1data.html#ab8734e666421c9fe3b6380a818c6c727">rewind</a>();</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  PN_CPP_EXTERN <span class="keywordtype">bool</span> <a class="code" href="classproton_1_1codec_1_1data.html#ac6e61de369e994009e36f344f99c15ad">empty</a>() <span class="keyword">const</span>;</div> -<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> -<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  PN_CPP_EXTERN <span class="keywordtype">int</span> <a class="code" href="classproton_1_1codec_1_1data.html#a2063391a2df2e01d257a0deea850258f">append</a>(<a class="code" href="classproton_1_1codec_1_1data.html">data</a> src);</div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> -<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  PN_CPP_EXTERN <span class="keywordtype">int</span> <a class="code" href="classproton_1_1codec_1_1data.html#aa93b3077282a673a1cbb7eed3b08993f">appendn</a>(<a class="code" href="classproton_1_1codec_1_1data.html">data</a> src, <span class="keywordtype">int</span> limit);</div> -<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">protected</span>:</div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  PN_CPP_EXTERN <span class="keywordtype">void</span>* point() <span class="keyword">const</span>;</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> restore(<span class="keywordtype">void</span>* h);</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> narrow();</div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> widen();</div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  PN_CPP_EXTERN <span class="keywordtype">bool</span> next();</div> -<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  PN_CPP_EXTERN <span class="keywordtype">bool</span> prev();</div> -<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">// XXX -> internal namespace</span></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace </span>codec {</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">class </span>data : <span class="keyword">public</span> internal::object<pn_data_t> {</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  data(pn_data_t* d) : internal::object<pn_data_t>(d) {}</div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">public</span>:</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  data() : internal::object<pn_data_t>(0) {}</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  PN_CPP_EXTERN <span class="keyword">static</span> data create();</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> copy(<span class="keyword">const</span> data&);</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> clear();</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> rewind();</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  PN_CPP_EXTERN <span class="keywordtype">bool</span> empty() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  PN_CPP_EXTERN <span class="keywordtype">int</span> append(data src);</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  PN_CPP_EXTERN <span class="keywordtype">int</span> appendn(data src, <span class="keywordtype">int</span> limit);</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  PN_CPP_EXTERN <span class="keywordtype">bool</span> next();</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  PN_CPP_EXTERN <span class="keywordtype">void</span>* point() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  PN_CPP_EXTERN <span class="keywordtype">void</span> restore(<span class="keywordtype">void</span>* h);</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> narrow();</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">void</span> widen();</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">friend</span> <span class="keyword">class </span>internal::factory<data>;</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">friend</span> <span class="keyword">struct </span>state_guard;</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">friend</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ada44820890dab1d51fb1efd5d5d5bc95">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1codec_1_1data.html">data</a>&);</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">friend</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton_1_1codec.html#a7991a313b6d063eebd84ad53775e2da4">operator<<</a>(std::ostream&, <span class="keyword">const</span> data&);</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span> };</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment">// state_guard saves the state and restores it in dtor unless cancel() is called.</span></div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">struct </span>state_guard {</div> -<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  data& data_;</div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span>* point_;</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">bool</span> cancel_;</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  state_guard(data& d) : data_(d), point_(data_.point()), cancel_(false) {}</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  ~state_guard() { <span class="keywordflow">if</span> (!cancel_) data_.restore(point_); }</div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span> cancel() { cancel_ = <span class="keyword">true</span>; }</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> };</div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// Start encoding a complex type.</span></div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">struct </span>start {</div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  start(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> type_=<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>, <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element_=<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>,</div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">bool</span> described_=<span class="keyword">false</span>, <span class="keywordtype">size_t</span> size_=0) :</div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  type(type_), element(element_), is_described(described_), size(size_) {}</div> -<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> type; </div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element; </div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">bool</span> is_described; </div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">size_t</span> size; </div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structproton_1_1codec_1_1state__guard.html"> 87</a></span> <span class="keyword">struct </span><a class="code" href="structproton_1_1codec_1_1state__guard.html">state_guard</a> {</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  data& data_;</div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span>* point_;</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">bool</span> cancel_;</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="structproton_1_1codec_1_1state__guard.html">state_guard</a>(data& d) : data_(d), point_(data_.point()), cancel_(<span class="keyword">false</span>) {}</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  ~<a class="code" href="structproton_1_1codec_1_1state__guard.html">state_guard</a>() { <span class="keywordflow">if</span> (!cancel_) data_.restore(point_); }</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> +<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structproton_1_1codec_1_1state__guard.html#a02d5fa6b14e221f3012a794b905be166"> 101</a></span>  <span class="keywordtype">void</span> <a class="code" href="structproton_1_1codec_1_1state__guard.html#a02d5fa6b14e221f3012a794b905be166">cancel</a>() { cancel_ = <span class="keyword">true</span>; }</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> };</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  PN_CPP_EXTERN <span class="keyword">static</span> start array(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element, <span class="keywordtype">bool</span> described=<span class="keyword">false</span>) { <span class="keywordflow">return</span> start(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688">ARRAY</a>, element, described); }</div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  PN_CPP_EXTERN <span class="keyword">static</span> start list() { <span class="keywordflow">return</span> start(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0">LIST</a>); }</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  PN_CPP_EXTERN <span class="keyword">static</span> start map() { <span class="keywordflow">return</span> start(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b">MAP</a>); }</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  PN_CPP_EXTERN <span class="keyword">static</span> start described() { <span class="keywordflow">return</span> start(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d">DESCRIBED</a>, <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>, <span class="keyword">true</span>); }</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> };</div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// Finish inserting or extracting a complex type.</span></div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">struct </span>finish {};</div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> } <span class="comment">// codec</span></div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> -<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> } <span class="comment">// proton</span></div> +<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="namespaceproton_1_1codec.html"> 105</a></span> <span class="keyword">struct </span><a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a> {</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a>(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> type_=<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>, <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element_=<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>,</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">bool</span> described_=<span class="keyword">false</span>, <span class="keywordtype">size_t</span> size_=0) :</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  type(type_), element(element_), is_described(described_), size(size_) {}</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> type; </div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element; </div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">bool</span> is_described; </div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordtype">size_t</span> size; </div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div> -<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#endif </span></div> -<div class="ttc" id="namespaceproton_html_ada44820890dab1d51fb1efd5d5d5bc95"><div class="ttname"><a href="namespaceproton.html#ada44820890dab1d51fb1efd5d5d5bc95">proton::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &, type_id)</div><div class="ttdoc">Print the type name. </div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">proton::NULL_TYPE</a></div><div class="ttdoc">The null type, contains no data. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:35</div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d">proton::DESCRIBED</a></div><div class="ttdoc">A descriptor and a value. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:56</div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688">proton::ARRAY</a></div><div class="ttdoc">A sequence of values of the same type. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:57</div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b">proton::MAP</a></div><div class="ttdoc">A sequence of key:value pairs, may be of mixed types. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:59</div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_ae954badb9bd793d1616544c6dedec60c"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#ae954badb9bd793d1616544c6dedec60c">proton::codec::data::create</a></div><div class="ttdeci">static data create()</div><div class="ttdoc">Create a new data object. </div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_ac6e61de369e994009e36f344f99c15ad"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#ac6e61de369e994009e36f344f99c15ad">proton::codec::data::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdoc">True if there are no values. </div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_a2063391a2df2e01d257a0deea850258f"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#a2063391a2df2e01d257a0deea850258f">proton::codec::data::append</a></div><div class="ttdeci">int append(data src)</div><div class="ttdoc">Append the contents of another data object. </div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_ab8734e666421c9fe3b6380a818c6c727"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#ab8734e666421c9fe3b6380a818c6c727">proton::codec::data::rewind</a></div><div class="ttdeci">void rewind()</div><div class="ttdoc">Rewind current position to the start. </div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_aa3f101f08b701a1320781fec0ff23417"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#aa3f101f08b701a1320781fec0ff23417">proton::codec::data::data</a></div><div class="ttdeci">data(pn_data_t *d=0)</div><div class="ttdoc">Wrap an existing proton-C data object. </div><div class="ttdef"><b>Definition:</b> data.hpp:47</div></div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">static</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a> array(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">type_id</a> element, <span class="keywordtype">bool</span> described=<span class="keyword">false</span>) { <span class="keywordflow">return</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a>(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688">ARRAY</a>, element, described); }</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">static</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a> list() { <span class="keywordflow">return</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a>(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0">LIST</a>); }</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">static</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a> map() { <span class="keywordflow">return</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a>(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b">MAP</a>); }</div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">static</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a> described() { <span class="keywordflow">return</span> <a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">start</a>(<a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d">DESCRIBED</a>, <a class="code" href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">NULL_TYPE</a>, <span class="keyword">true</span>); }</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> };</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div> +<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="namespaceproton_1_1codec.html"> 128</a></span> <span class="keyword">struct </span><a class="code" href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1finish">finish</a> {};</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="comment">// codec</span></div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> } <span class="comment">// proton</span></div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor">#endif // PROTON_CODEC_DATA_HPP</span></div> +<div class="ttc" id="namespaceproton_1_1codec_html_structproton_1_1codec_1_1start"><div class="ttname"><a href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1start">proton::codec::start</a></div><div class="ttdoc">Experimental - Start encoding a complex type. </div><div class="ttdef"><b>Definition:</b> data.hpp:105</div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4">proton::NULL_TYPE</a></div><div class="ttdoc">The null type, contains no data. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:39</div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d">proton::DESCRIBED</a></div><div class="ttdoc">A descriptor and a value. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:60</div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688">proton::ARRAY</a></div><div class="ttdoc">A sequence of values of the same type. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:61</div></div> +<div class="ttc" id="namespaceproton_1_1codec_html_a7991a313b6d063eebd84ad53775e2da4"><div class="ttname"><a href="namespaceproton_1_1codec.html#a7991a313b6d063eebd84ad53775e2da4">proton::codec::operator<<</a></div><div class="ttdeci">encoder & operator<<(encoder &e, const std::deque< T, A > &x)</div><div class="ttdoc">std::deque<T> for most T is encoded as an amqp::ARRAY (same type elements) </div><div class="ttdef"><b>Definition:</b> deque.hpp:34</div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b">proton::MAP</a></div><div class="ttdoc">A sequence of key-value pairs. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:63</div></div> +<div class="ttc" id="structproton_1_1codec_1_1state__guard_html"><div class="ttname"><a href="structproton_1_1codec_1_1state__guard.html">proton::codec::state_guard</a></div><div class="ttdoc">Experimental - Save and restore codec state </div><div class="ttdef"><b>Definition:</b> data.hpp:87</div></div> <div class="ttc" id="type__id_8hpp_html"><div class="ttname"><a href="type__id_8hpp.html">type_id.hpp</a></div><div class="ttdoc">Type-identifiers for AMQP types. </div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">proton::type_id</a></div><div class="ttdeci">type_id</div><div class="ttdoc">An identifier for AMQP types. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:34</div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_aad84d11869f8165c7fd3db0a6546beb5"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#aad84d11869f8165c7fd3db0a6546beb5">proton::codec::data::copy</a></div><div class="ttdeci">void copy(const data &)</div><div class="ttdoc">Copy the contents of another data object. </div></div> -<div class="ttc" id="types__fwd_8hpp_html"><div class="ttname"><a href="types__fwd_8hpp.html">types_fwd.hpp</a></div><div class="ttdoc">Forward declarations for all the C++ types used by proton to represent AMQP types. </div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html"><div class="ttname"><a href="classproton_1_1codec_1_1data.html">proton::codec::data</a></div><div class="ttdoc">Wrapper for a proton data object. </div><div class="ttdef"><b>Definition:</b> data.hpp:44</div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_aa93b3077282a673a1cbb7eed3b08993f"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#aa93b3077282a673a1cbb7eed3b08993f">proton::codec::data::appendn</a></div><div class="ttdeci">int appendn(data src, int limit)</div><div class="ttdoc">Append up to limit items from data object. </div></div> -<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0">proton::LIST</a></div><div class="ttdoc">A sequence of values, may be of mixed types. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:58</div></div> -<div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdoc">The proton namespace. </div><div class="ttdef"><b>Definition:</b> acceptor.hpp:31</div></div> -<div class="ttc" id="classproton_1_1codec_1_1data_html_ac8bb3912a3ce86b15842e79d0b421204"><div class="ttname"><a href="classproton_1_1codec_1_1data.html#ac8bb3912a3ce86b15842e79d0b421204">proton::codec::data::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Clear the data. </div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9">proton::type_id</a></div><div class="ttdeci">type_id</div><div class="ttdoc">An identifier for AMQP types. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:38</div></div> +<div class="ttc" id="types__fwd_8hpp_html"><div class="ttname"><a href="types__fwd_8hpp.html">types_fwd.hpp</a></div><div class="ttdoc">Forward declarations for all the C++ types used by Proton to represent AMQP types. </div></div> +<div class="ttc" id="namespaceproton_1_1codec_html_structproton_1_1codec_1_1finish"><div class="ttname"><a href="namespaceproton_1_1codec.html#structproton_1_1codec_1_1finish">proton::codec::finish</a></div><div class="ttdoc">Experimental - Finish inserting or extracting a complex type. </div><div class="ttdef"><b>Definition:</b> data.hpp:128</div></div> +<div class="ttc" id="structproton_1_1codec_1_1state__guard_html_a02d5fa6b14e221f3012a794b905be166"><div class="ttname"><a href="structproton_1_1codec_1_1state__guard.html#a02d5fa6b14e221f3012a794b905be166">proton::codec::state_guard::cancel</a></div><div class="ttdeci">void cancel()</div><div class="ttdoc">Discard the saved state. </div><div class="ttdef"><b>Definition:</b> data.hpp:101</div></div> +<div class="ttc" id="namespaceproton_html_a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0"><div class="ttname"><a href="namespaceproton.html#a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0">proton::LIST</a></div><div class="ttdoc">A sequence of values of mixed types. </div><div class="ttdef"><b>Definition:</b> type_id.hpp:62</div></div> +<div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdoc">The main Proton namespace. </div><div class="ttdef"><b>Definition:</b> annotation_key.hpp:28</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> - <li class="navelem"><a class="el" href="dir_25143d27009f52d175c1d192441a738a.html">proton</a></li><li class="navelem"><a class="el" href="data_8hpp.html">data.hpp</a></li> + <li class="navelem"><a class="el" href="dir_25143d27009f52d175c1d192441a738a.html">proton</a></li><li class="navelem"><a class="el" href="dir_d4a17a437089f6e4c823599b6b44ea54.html">codec</a></li><li class="navelem"><b>data.hpp</b></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/627da724/content/releases/qpid-proton-master/proton/cpp/api/decimal_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-proton-master/proton/cpp/api/decimal_8hpp_source.html b/content/releases/qpid-proton-master/proton/cpp/api/decimal_8hpp_source.html index d8be110..58cf40e 100755 --- a/content/releases/qpid-proton-master/proton/cpp/api/decimal_8hpp_source.html +++ b/content/releases/qpid-proton-master/proton/cpp/api/decimal_8hpp_source.html @@ -93,58 +93,60 @@ $(document).ready(function(){initNavTree('decimal_8hpp_source.html','');}); <div class="title">decimal.hpp</div> </div> </div><!--header--> <div class="contents"> -<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef DECIMAL_HPP</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define DECIMAL_HPP</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">/*</span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * distributed with this work for additional information</span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef PROTON_DECIMAL_HPP</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define PROTON_DECIMAL_HPP</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/*</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * distributed with this work for additional information</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * software distributed under the License is distributed on an</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * specific language governing permissions and limitations</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * under the License.</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "proton/byte_array.hpp"</span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "proton/comparable.hpp"</span></div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "proton/export.hpp"</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 <proton/types.h></span></div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <iosfwd></span></div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespaceproton.html">proton</a> {</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> -<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classproton_1_1decimal32.html"> 45</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal32.html">decimal32</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><4> {};</div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software distributed under the License is distributed on an</span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * specific language governing permissions and limitations</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * under the License.</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "proton/byte_array.hpp"</span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "proton/export.hpp"</span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "proton/internal/comparable.hpp"</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 "proton/types.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 <iosfwd></span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span><a class="code" href="namespaceproton.html">proton</a> {</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> -<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classproton_1_1decimal64.html"> 48</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal64.html">decimal64</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><8> {};</div> +<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classproton_1_1decimal32.html"> 48</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal32.html">decimal32</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><4> {};</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> -<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classproton_1_1decimal128.html"> 51</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal128.html">decimal128</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><16> {};</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal32.html">decimal32</a>&);</div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal64.html">decimal64</a>&);</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal128.html">decimal128</a>&);</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div> +<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classproton_1_1decimal64.html"> 51</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal64.html">decimal64</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><8> {};</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> +<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classproton_1_1decimal128.html"> 54</a></span> <span class="keyword">class </span><a class="code" href="classproton_1_1decimal128.html">decimal128</a> : <span class="keyword">public</span> <a class="code" href="classproton_1_1byte__array.html">byte_array</a><16> {};</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal32.html">decimal32</a>&);</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal64.html">decimal64</a>&);</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> PN_CPP_EXTERN std::ostream& <a class="code" href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">operator<<</a>(std::ostream&, <span class="keyword">const</span> <a class="code" href="classproton_1_1decimal128.html">decimal128</a>&);</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif // DECIMAL_HPP</span></div> -<div class="ttc" id="namespaceproton_html_ae6fabe30961a3d3280bb8445e743b21c"><div class="ttname"><a href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">proton::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &, const binary &)</div><div class="ttdoc">Print binary value. </div></div> -<div class="ttc" id="classproton_1_1decimal64_html"><div class="ttname"><a href="classproton_1_1decimal64.html">proton::decimal64</a></div><div class="ttdoc">64-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:48</div></div> -<div class="ttc" id="classproton_1_1decimal128_html"><div class="ttname"><a href="classproton_1_1decimal128.html">proton::decimal128</a></div><div class="ttdoc">128-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:51</div></div> -<div class="ttc" id="classproton_1_1decimal32_html"><div class="ttname"><a href="classproton_1_1decimal32.html">proton::decimal32</a></div><div class="ttdoc">32-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:45</div></div> -<div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdoc">The proton namespace. </div><div class="ttdef"><b>Definition:</b> acceptor.hpp:31</div></div> -<div class="ttc" id="classproton_1_1byte__array_html"><div class="ttname"><a href="classproton_1_1byte__array.html">proton::byte_array</a></div><div class="ttdoc">Used to represent fixed-sized data types that don't have a natural C++ representation as an array of ...</div><div class="ttdef"><b>Definition:</b> byte_array.hpp:36</div></div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> } <span class="comment">// proton</span></div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#endif // PROTON_DECIMAL_HPP</span></div> +<div class="ttc" id="namespaceproton_html_ae6fabe30961a3d3280bb8445e743b21c"><div class="ttname"><a href="namespaceproton.html#ae6fabe30961a3d3280bb8445e743b21c">proton::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &, const binary &)</div><div class="ttdoc">Print a binary value. </div></div> +<div class="ttc" id="classproton_1_1decimal64_html"><div class="ttname"><a href="classproton_1_1decimal64.html">proton::decimal64</a></div><div class="ttdoc">64-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:51</div></div> +<div class="ttc" id="classproton_1_1decimal128_html"><div class="ttname"><a href="classproton_1_1decimal128.html">proton::decimal128</a></div><div class="ttdoc">128-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:54</div></div> +<div class="ttc" id="classproton_1_1decimal32_html"><div class="ttname"><a href="classproton_1_1decimal32.html">proton::decimal32</a></div><div class="ttdoc">32-bit decimal floating point. </div><div class="ttdef"><b>Definition:</b> decimal.hpp:48</div></div> +<div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdoc">The main Proton namespace. </div><div class="ttdef"><b>Definition:</b> annotation_key.hpp:28</div></div> +<div class="ttc" id="classproton_1_1byte__array_html"><div class="ttname"><a href="classproton_1_1byte__array.html">proton::byte_array</a></div><div class="ttdoc">Arbitrary fixed-size data. </div><div class="ttdef"><b>Definition:</b> byte_array.hpp:40</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org