qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jr...@apache.org
Subject svn commit: r1736439 [20/49] - in /qpid/site: docs/releases/qpid-proton-master/ docs/releases/qpid-proton-master/messenger/c/examples/ docs/releases/qpid-proton-master/messenger/perl/examples/ docs/releases/qpid-proton-master/messenger/php/examples/ do...
Date Thu, 24 Mar 2016 12:41:40 GMT
Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/value_8hpp_source.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/value_8hpp_source.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/value_8hpp_source.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/value_8hpp_source.html Thu Mar 24 12:41:32 2016
@@ -93,8 +93,8 @@ $(document).ready(function(){initNavTree
 <div class="title">value.hpp</div>  </div>
 </div><!--header-->
 <div class="contents">
-<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef VALUE_H</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define VALUE_H</span></div>
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_VALUE_HPP</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_VALUE_HPP</span></div>
 <div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
 <div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/*</span></div>
 <div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
@@ -115,88 +115,97 @@ $(document).ready(function(){initNavTree
 <div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * under the License.</span></div>
 <div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
 <div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
-<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;proton/data.hpp&quot;</span></div>
-<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8hpp.html">proton/types.hpp</a>&quot;</span></div>
-<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;proton/timestamp.hpp&quot;</span></div>
-<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;proton/uuid.hpp&quot;</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;proton/encoder.hpp&gt;</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;proton/decoder.hpp&gt;</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;proton/type_traits.hpp&gt;</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="types__fwd_8hpp.html">proton/types_fwd.hpp</a>&gt;</span></div>
 <div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
-<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceproton.html">proton</a> {</div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;iosfwd&gt;</span></div>
 <div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
-<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classproton_1_1value.html">   38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classproton_1_1value.html">value</a> : <span class="keyword">private</span> <a class="code" href="classproton_1_1comparable.html">comparable</a>&lt;value&gt; {</div>
-<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <span class="keyword">public</span>:</div>
-<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>();</div>
-<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
-<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(<span class="keyword">const</span> value&amp;);</div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<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>&#160;</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">class </span>value_base {</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    PN_CPP_EXTERN type_id type() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">bool</span> empty() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    codec::data&amp; data() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">mutable</span> <span class="keyword">class </span>codec::data data_;</div>
 <div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
-<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#if PN_CPP_HAS_CPP11</span></div>
-<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(value&amp;&amp;);</div>
-<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#endif</span></div>
-<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
-<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#aa0f56a013c6d27822a3393b6243db645">   52</a></span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt; <a class="code" href="classproton_1_1value.html#aa0f56a013c6d27822a3393b6243db645">value</a>(<span class="keyword">const</span> T&amp; x, <span class="keyword">typename</span> enable_amqp_type&lt;T&gt;::type* = 0) { encode() &lt;&lt; x; }</div>
-<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
-<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    PN_CPP_EXTERN value&amp; operator=(<span class="keyword">const</span> value&amp;);</div>
-<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
-<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">void</span> <a class="code" href="classproton_1_1value.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a>();</div>
-<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
-<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">bool</span> <a class="code" href="classproton_1_1value.html#ac6e61de369e994009e36f344f99c15ad">empty</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
-<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    PN_CPP_EXTERN type_id <a class="code" href="classproton_1_1value.html#a6a70b946e3620c70eac8e97f7f33fb27">type</a>() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>message;</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>codec::encoder;</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>codec::decoder;</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, <span class="keyword">const</span> value_base&amp;);</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;};</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
+<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classproton_1_1value.html">   56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classproton_1_1value.html">value</a> : <span class="keyword">public</span> value_base, <span class="keyword">private</span> <a class="code" href="classproton_1_1comparable.html">comparable</a>&lt;value&gt; {</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>();</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(<span class="keyword">const</span> null&amp;);</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(<span class="keyword">const</span> value&amp;);</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    PN_CPP_EXTERN value&amp; operator=(<span class="keyword">const</span> value&amp;);</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#if PN_CPP_HAS_CPP11</span></div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    PN_CPP_EXTERN <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(value&amp;&amp;);</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    PN_CPP_EXTERN value&amp; operator=(value&amp;&amp;);</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#endif</span></div>
 <div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
-<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#aa3b36d8cc5b40bdbb3501d93bd5f8d8e">   72</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <span class="keyword">get</span>(T &amp;t) <span class="keyword">const</span> { decode() &gt;&gt; t; }</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    PN_CPP_EXTERN <span class="keyword">explicit</span> <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(<span class="keyword">const</span> <a class="code" href="classproton_1_1codec_1_1data.html">codec::data</a>&amp;);</div>
 <div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
-<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#ad192b10c6149f6b17a71e12534204c89">   75</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="classproton_1_1value.html#ad192b10c6149f6b17a71e12534204c89">get_map</a>(T&amp; t)<span class="keyword"> const </span>{ decode() &gt;&gt; internal::to_map(t); }</div>
-<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
-<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#a19ad784e67197c3086db0da98c61d7a7">   78</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="classproton_1_1value.html#a19ad784e67197c3086db0da98c61d7a7">get_pairs</a>(T&amp; t)<span class="keyword"> const </span>{ decode() &gt;&gt; internal::to_pairs(t); }</div>
-<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
-<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#a6f8e5eaf65a44f043963e882912f87cb">   81</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="classproton_1_1value.html#a6f8e5eaf65a44f043963e882912f87cb">get_sequence</a>(T&amp; t)<span class="keyword"> const </span>{ decode() &gt;&gt; internal::to_sequence(t); }</div>
-<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
-<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
-<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#a1541aac2858109c409fcf5eb4ba7799e">   86</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T <span class="keyword">get</span>() <span class="keyword">const</span> { T t; <span class="keyword">get</span>(t); <span class="keywordflow">return</span> t; }</div>
-<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
-<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    PN_CPP_EXTERN int64_t <a class="code" href="classproton_1_1value.html#a723cf0e07741e34d77b20d5db5d34d7f">as_int</a>() <span class="keyword">const</span>;        </div>
-<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    PN_CPP_EXTERN uint64_t <a class="code" href="classproton_1_1value.html#af92a6fc8170ec402177582091e45c85b">as_uint</a>() <span class="keyword">const</span>;      </div>
-<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">double</span> <a class="code" href="classproton_1_1value.html#a4e73e0d7340fdd4d2ed084297f293512">as_double</a>() <span class="keyword">const</span>;      </div>
-<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    PN_CPP_EXTERN std::string <a class="code" href="classproton_1_1value.html#a1add13e617ba6434636846c7a0156282">as_string</a>() <span class="keyword">const</span>; </div>
-<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
-<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">void</span> swap(value&amp;, value&amp;);</div>
-<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> value&amp; x, <span class="keyword">const</span> value&amp; y);</div>
-<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">bool</span> operator&lt;(<span class="keyword">const</span> value&amp; x, <span class="keyword">const</span> value&amp; y);</div>
-<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN std::ostream&amp; operator&lt;&lt;(std::ostream&amp; o, <span class="keyword">const</span> value&amp; dv);</div>
-<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
-<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    PN_CPP_EXTERN internal::encoder encode();</div>
-<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    PN_CPP_EXTERN internal::decoder decode() <span class="keyword">const</span>;</div>
-<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    PN_CPP_EXTERN <span class="keyword">explicit</span> <a class="code" href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">value</a>(pn_data_t*); </div>
-<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
-<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keyword">private</span>:</div>
-<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
-<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">mutable</span> <span class="keyword">class </span>internal::data data_;</div>
-<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    internal::data&amp; data() <span class="keyword">const</span>;   <span class="comment">// On-demand access.</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
-<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classproton_1_1message.html">message</a>;</div>
-<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>internal::encoder;</div>
-<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>internal::decoder;</div>
-<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;};</div>
-<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
-<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div>
-<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
-<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif // VALUE_H</span></div>
-<div class="ttc" id="classproton_1_1message_html"><div class="ttname"><a href="classproton_1_1message.html">proton::message</a></div><div class="ttdoc">An AMQP message. </div><div class="ttdef"><b>Definition:</b> message.hpp:48</div></div>
-<div class="ttc" id="classproton_1_1value_html_aefbfa229f1c9e1fc967bff724a010f9e"><div class="ttname"><a href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">proton::value::value</a></div><div class="ttdeci">value()</div><div class="ttdoc">Create an empty value. </div></div>
-<div class="ttc" id="classproton_1_1value_html_a6f8e5eaf65a44f043963e882912f87cb"><div class="ttname"><a href="classproton_1_1value.html#a6f8e5eaf65a44f043963e882912f87cb">proton::value::get_sequence</a></div><div class="ttdeci">void get_sequence(T &amp;t) const </div><div class="ttdoc">Get an AMQP array or list as type T that satisfies the sequence concept. */. </div><div class="ttdef"><b>Definition:</b> value.hpp:81</div></div>
+<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#aee4303bfd662c815b44183406a293b99">   75</a></span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt; <a class="code" href="classproton_1_1value.html#aee4303bfd662c815b44183406a293b99">value</a>(<span class="keyword">const</span> T&amp; x, <span class="keyword">typename</span> codec::assignable&lt;T&gt;::type* = 0) {</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="classproton_1_1codec_1_1encoder.html">codec::encoder</a> e(*<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        e &lt;&lt; x;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    PN_CPP_EXTERN value&amp; operator=(<span class="keyword">const</span> null&amp;);</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
+<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#afef7ea629e797d4660b3a630b99829fa">   83</a></span>&#160;    <span class="keyword">typename</span> codec::assignable&lt;T, value&amp;&gt;::type <a class="code" href="classproton_1_1value.html#afef7ea629e797d4660b3a630b99829fa">operator=</a>(<span class="keyword">const</span> T&amp; x) {</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="classproton_1_1codec_1_1encoder.html">codec::encoder</a> e(*<span class="keyword">this</span>);</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        e &lt;&lt; x;</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">void</span> <a class="code" href="classproton_1_1value.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a>();</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
+<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#aa3b36d8cc5b40bdbb3501d93bd5f8d8e">   99</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> <span class="keyword">get</span>(T &amp;t) <span class="keyword">const</span> { codec::decoder d(*<span class="keyword">this</span>); d &gt;&gt; t; }</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">void</span> <span class="keyword">get</span>(null&amp;) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
+<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classproton_1_1value.html#a1541aac2858109c409fcf5eb4ba7799e">  105</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T <span class="keyword">get</span>() <span class="keyword">const</span> { T t; <span class="keyword">get</span>(t); <span class="keywordflow">return</span> t; }</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    PN_CPP_EXTERN int64_t <a class="code" href="classproton_1_1value.html#a723cf0e07741e34d77b20d5db5d34d7f">as_int</a>() <span class="keyword">const</span>;        </div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    PN_CPP_EXTERN uint64_t <a class="code" href="classproton_1_1value.html#af92a6fc8170ec402177582091e45c85b">as_uint</a>() <span class="keyword">const</span>;      </div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    PN_CPP_EXTERN <span class="keywordtype">double</span> <a class="code" href="classproton_1_1value.html#a4e73e0d7340fdd4d2ed084297f293512">as_double</a>() <span class="keyword">const</span>;      </div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    PN_CPP_EXTERN std::string <a class="code" href="classproton_1_1value.html#a1add13e617ba6434636846c7a0156282">as_string</a>() <span class="keyword">const</span>; </div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">void</span> swap(value&amp;, value&amp;);</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> value&amp; x, <span class="keyword">const</span> value&amp; y);</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="keyword">friend</span> PN_CPP_EXTERN <span class="keywordtype">bool</span> operator&lt;(<span class="keyword">const</span> value&amp; x, <span class="keyword">const</span> value&amp; y);</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T <span class="keyword">get</span>(<span class="keyword">const</span> value_base&amp; v) { <span class="keywordflow">return</span> codec::decoder(v).extract&lt;T&gt;(); }</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;} <span class="comment">// proton</span></div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#endif // PROTON_VALUE_HPP</span></div>
+<div class="ttc" id="classproton_1_1codec_1_1encoder_html"><div class="ttname"><a href="classproton_1_1codec_1_1encoder.html">proton::codec::encoder</a></div><div class="ttdoc">Stream-like encoder from AMQP bytes to C++ values. </div><div class="ttdef"><b>Definition:</b> encoder.hpp:38</div></div>
+<div class="ttc" id="classproton_1_1value_html_aefbfa229f1c9e1fc967bff724a010f9e"><div class="ttname"><a href="classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e">proton::value::value</a></div><div class="ttdeci">value()</div><div class="ttdoc">Create a null value. </div></div>
+<div class="ttc" id="classproton_1_1value_html_aee4303bfd662c815b44183406a293b99"><div class="ttname"><a href="classproton_1_1value.html#aee4303bfd662c815b44183406a293b99">proton::value::value</a></div><div class="ttdeci">value(const T &amp;x, typename codec::assignable&lt; T &gt;::type *=0)</div><div class="ttdoc">Construct from any allowed type T. </div><div class="ttdef"><b>Definition:</b> value.hpp:75</div></div>
 <div class="ttc" id="classproton_1_1comparable_html"><div class="ttname"><a href="classproton_1_1comparable.html">proton::comparable</a></div><div class="ttdoc">Base class for comparable types with operator< and operator==. </div><div class="ttdef"><b>Definition:</b> comparable.hpp:27</div></div>
-<div class="ttc" id="classproton_1_1value_html_ac6e61de369e994009e36f344f99c15ad"><div class="ttname"><a href="classproton_1_1value.html#ac6e61de369e994009e36f344f99c15ad">proton::value::empty</a></div><div class="ttdeci">bool empty() const </div><div class="ttdoc">True if the value contains no data. </div></div>
-<div class="ttc" id="types_8hpp_html"><div class="ttname"><a href="types_8hpp.html">types.hpp</a></div><div class="ttdoc">Defines C++ types representing AMQP types. </div></div>
+<div class="ttc" id="classproton_1_1value_html_afef7ea629e797d4660b3a630b99829fa"><div class="ttname"><a href="classproton_1_1value.html#afef7ea629e797d4660b3a630b99829fa">proton::value::operator=</a></div><div class="ttdeci">codec::assignable&lt; T, value &amp; &gt;::type operator=(const T &amp;x)</div><div class="ttdoc">Assign from any encodable type T. </div><div class="ttdef"><b>Definition:</b> value.hpp:83</div></div>
 <div class="ttc" id="classproton_1_1value_html_a1add13e617ba6434636846c7a0156282"><div class="ttname"><a href="classproton_1_1value.html#a1add13e617ba6434636846c7a0156282">proton::value::as_string</a></div><div class="ttdeci">std::string as_string() const </div><div class="ttdoc">Allowed if type_id_is_string_like(type()) </div></div>
-<div class="ttc" id="classproton_1_1value_html_aa0f56a013c6d27822a3393b6243db645"><div class="ttname"><a href="classproton_1_1value.html#aa0f56a013c6d27822a3393b6243db645">proton::value::value</a></div><div class="ttdeci">value(const T &amp;x, typename enable_amqp_type&lt; T &gt;::type *=0)</div><div class="ttdoc">Construct from any allowed type T. </div><div class="ttdef"><b>Definition:</b> value.hpp:52</div></div>
 <div class="ttc" id="classproton_1_1value_html_a723cf0e07741e34d77b20d5db5d34d7f"><div class="ttname"><a href="classproton_1_1value.html#a723cf0e07741e34d77b20d5db5d34d7f">proton::value::as_int</a></div><div class="ttdeci">int64_t as_int() const </div><div class="ttdoc">Allowed if type_id_is_integral(type()) </div></div>
-<div class="ttc" id="classproton_1_1value_html"><div class="ttname"><a href="classproton_1_1value.html">proton::value</a></div><div class="ttdoc">A holder for an AMQP value. </div><div class="ttdef"><b>Definition:</b> value.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="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:36</div></div>
+<div class="ttc" id="classproton_1_1value_html"><div class="ttname"><a href="classproton_1_1value.html">proton::value</a></div><div class="ttdoc">A holder for any single AMQP value, simple or complex (can be list, array, map etc.) </div><div class="ttdef"><b>Definition:</b> value.hpp:56</div></div>
 <div class="ttc" id="classproton_1_1value_html_a4e73e0d7340fdd4d2ed084297f293512"><div class="ttname"><a href="classproton_1_1value.html#a4e73e0d7340fdd4d2ed084297f293512">proton::value::as_double</a></div><div class="ttdeci">double as_double() const </div><div class="ttdoc">Allowed if type_id_is_floating_point(type()) </div></div>
-<div class="ttc" id="classproton_1_1value_html_a19ad784e67197c3086db0da98c61d7a7"><div class="ttname"><a href="classproton_1_1value.html#a19ad784e67197c3086db0da98c61d7a7">proton::value::get_pairs</a></div><div class="ttdeci">void get_pairs(T &amp;t) const </div><div class="ttdoc">Get a map as a as any type T that is a sequence pair-like types with first and second. </div><div class="ttdef"><b>Definition:</b> value.hpp:78</div></div>
-<div class="ttc" id="classproton_1_1value_html_ad192b10c6149f6b17a71e12534204c89"><div class="ttname"><a href="classproton_1_1value.html#ad192b10c6149f6b17a71e12534204c89">proton::value::get_map</a></div><div class="ttdeci">void get_map(T &amp;t) const </div><div class="ttdoc">Get an AMQP map as any type T that satisfies the map concept. </div><div class="ttdef"><b>Definition:</b> value.hpp:75</div></div>
-<div class="ttc" id="classproton_1_1value_html_ac8bb3912a3ce86b15842e79d0b421204"><div class="ttname"><a href="classproton_1_1value.html#ac8bb3912a3ce86b15842e79d0b421204">proton::value::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Remove any contained data. </div></div>
+<div class="ttc" id="classproton_1_1value_html_ac8bb3912a3ce86b15842e79d0b421204"><div class="ttname"><a href="classproton_1_1value.html#ac8bb3912a3ce86b15842e79d0b421204">proton::value::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Reset the value to null. </div></div>
 <div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdef"><b>Definition:</b> acceptor.hpp:31</div></div>
-<div class="ttc" id="classproton_1_1value_html_a6a70b946e3620c70eac8e97f7f33fb27"><div class="ttname"><a href="classproton_1_1value.html#a6a70b946e3620c70eac8e97f7f33fb27">proton::value::type</a></div><div class="ttdeci">type_id type() const </div><div class="ttdoc">Get the type ID for the current value. </div></div>
 <div class="ttc" id="classproton_1_1value_html_af92a6fc8170ec402177582091e45c85b"><div class="ttname"><a href="classproton_1_1value.html#af92a6fc8170ec402177582091e45c85b">proton::value::as_uint</a></div><div class="ttdeci">uint64_t as_uint() const </div><div class="ttdoc">Allowed if type_id_is_integral(type()) </div></div>
 </div><!-- fragment --></div><!-- contents -->
 </div><!-- doc-content -->

Added: qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/vector_8hpp_source.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/vector_8hpp_source.html?rev=1736439&view=auto
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/vector_8hpp_source.html (added)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/vector_8hpp_source.html Thu Mar 24 12:41:32 2016
@@ -0,0 +1,158 @@
+<!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>
+<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/vector.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>
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtreedata.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+  $(document).ready(initResizable);
+  $(window).load(resizeHeight);
+</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" />
+</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="projectalign" style="padding-left: 0.5em;">
+   <div id="projectname">Qpid Proton C++ API
+   &#160;<span id="projectnumber">master</span>
+   </div>
+  </td>
+   <td>        <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>
+</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.10 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+</div><!-- top -->
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+  <div id="nav-tree">
+    <div id="nav-tree-contents">
+      <div id="nav-sync" class="sync"></div>
+    </div>
+  </div>
+  <div id="splitbar" style="-moz-user-select:none;" 
+       class="ui-resizable-handle">
+  </div>
+</div>
+<script type="text/javascript">
+$(document).ready(function(){initNavTree('vector_8hpp_source.html','');});
+</script>
+<div id="doc-content">
+<!-- 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 class="header">
+  <div class="headertitle">
+<div class="title">vector.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_VECTOR_HPP</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_VECTOR_HPP</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/*</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * distributed with this work for additional information</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<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>&#160;<span class="comment"> *</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<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>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * under the License.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;proton/encoder.hpp&gt;</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;proton/decoder.hpp&gt;</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceproton.html">proton</a> {</div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span>codec {</div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> A&gt; encoder&amp; operator&lt;&lt;(encoder&amp; e, const std::vector&lt;T, A&gt;&amp; x) {</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">return</span> e &lt;&lt; encoder::array(x, type_id_of&lt;T&gt;::value);</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;}</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> A&gt; encoder&amp; operator&lt;&lt;(encoder&amp; e, const std::vector&lt;value, A&gt;&amp; x) { <span class="keywordflow">return</span> e &lt;&lt; encoder::list(x); }</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> A&gt; encoder&amp; operator&lt;&lt;(encoder&amp; e, const std::vector&lt;scalar, A&gt;&amp; x) { <span class="keywordflow">return</span> e &lt;&lt; encoder::list(x); }</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> A, <span class="keyword">class</span> K, <span class="keyword">class</span> T&gt;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;encoder&amp; operator&lt;&lt;(encoder&amp; e, const std::vector&lt;std::pair&lt;K,T&gt;, A&gt;&amp; x) { <span class="keywordflow">return</span> e &lt;&lt; encoder::map(x); }</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> A&gt; decoder&amp; operator&gt;&gt;(decoder&amp; d, std::vector&lt;T, A&gt;&amp; x) { <span class="keywordflow">return</span> d &gt;&gt; decoder::sequence(x); }</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> A, <span class="keyword">class</span> K, <span class="keyword">class</span> T&gt; decoder&amp; operator&gt;&gt;(decoder&amp; d, std::vector&lt;std::pair&lt;K, T&gt; , A&gt;&amp; x) { <span class="keywordflow">return</span> d &gt;&gt; decoder::pair_sequence(x); }</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;} <span class="comment">// internal</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;} <span class="comment">// proton</span></div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif // PROTON_VECTOR_HPP</span></div>
+<div class="ttc" id="namespaceproton_html"><div class="ttname"><a href="namespaceproton.html">proton</a></div><div class="ttdef"><b>Definition:</b> acceptor.hpp:31</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_659b8f7bed25fad65524af70d45ab193.html">proton</a></li><li class="navelem"><b>vector.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>
+  </ul>
+</div>
+</body>
+</html>

Propchange: qpid/site/docs/releases/qpid-proton-master/proton/cpp/api/vector_8hpp_source.html
------------------------------------------------------------------------------
    svn:executable = *

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.cpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.cpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.cpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.cpp.html Thu Mar 24 12:41:32 2016
@@ -116,18 +116,18 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>broker.cpp</h1>
-<div class="highlight"><pre><span class="cp">#include &quot;options.hpp&quot;</span>
-<span class="cp">#include &quot;broker.hpp&quot;</span>
+<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;options.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;broker.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &quot;proton/acceptor.hpp&quot;</span>
-<span class="cp">#include &quot;proton/container.hpp&quot;</span>
-<span class="cp">#include &quot;proton/value.hpp&quot;</span>
-
-<span class="cp">#include &lt;iostream&gt;</span>
-<span class="cp">#include &lt;deque&gt;</span>
-<span class="cp">#include &lt;map&gt;</span>
-<span class="cp">#include &lt;list&gt;</span>
-<span class="cp">#include &lt;string&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/acceptor.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/container.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/value.hpp&quot;</span><span class="cp"></span>
+
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;deque&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;map&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;list&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;string&gt;</span><span class="cp"></span>
 
 <span class="k">class</span> <span class="nc">broker</span> <span class="p">{</span>
   <span class="k">public</span><span class="o">:</span>
@@ -160,7 +160,7 @@ https://github.com/apache/qpid-proton/bl
 
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="sc">&#39;a&#39;</span><span class="p">,</span> <span class="s">&quot;address&quot;</span><span class="p">,</span> <span class="s">&quot;listen on URL&quot;</span><span class="p">,</span> <span class="s">&quot;URL&quot;</span><span class="p">);</span>
 
-    <span class="n">try</span> <span class="p">{</span>
+    <span class="k">try</span> <span class="p">{</span>
         <span class="n">opts</span><span class="p">.</span><span class="n">parse</span><span class="p">();</span>
 
         <span class="n">broker</span> <span class="n">b</span><span class="p">(</span><span class="n">url</span><span class="p">);</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.hpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.hpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.hpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/broker.hpp.html Thu Mar 24 12:41:32 2016
@@ -116,7 +116,7 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>broker.hpp</h1>
-<div class="highlight"><pre><span class="cp">#ifndef BROKER_HPP</span>
+<div class="highlight"><pre><span></span><span class="cp">#ifndef BROKER_HPP</span>
 <span class="cp">#define BROKER_HPP</span>
 
 
@@ -128,18 +128,18 @@ https://github.com/apache/qpid-proton/bl
 <span class="c1">/// The examples add functionality as needed, this helps to make it</span>
 <span class="c1">/// easier to see the important differences between the examples.</span>
 
-<span class="cp">#include &quot;proton/event.hpp&quot;</span>
-<span class="cp">#include &quot;proton/message.hpp&quot;</span>
-<span class="cp">#include &quot;proton/handler.hpp&quot;</span>
-<span class="cp">#include &quot;proton/sender.hpp&quot;</span>
-<span class="cp">#include &quot;proton/transport.hpp&quot;</span>
-<span class="cp">#include &quot;proton/url.hpp&quot;</span>
-
-<span class="cp">#include &lt;iostream&gt;</span>
-<span class="cp">#include &lt;deque&gt;</span>
-<span class="cp">#include &lt;map&gt;</span>
-<span class="cp">#include &lt;list&gt;</span>
-<span class="cp">#include &lt;sstream&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/event.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/message.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/handler.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/sender.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/transport.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/url.hpp&quot;</span><span class="cp"></span>
+
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;deque&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;map&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;list&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;sstream&gt;</span><span class="cp"></span>
 
 <span class="c1">/// A simple implementation of a queue.</span>
 <span class="k">class</span> <span class="nc">queue</span> <span class="p">{</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/client.cpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/client.cpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/client.cpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/client.cpp.html Thu Mar 24 12:41:32 2016
@@ -116,14 +116,14 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>client.cpp</h1>
-<div class="highlight"><pre><span class="cp">#include &quot;options.hpp&quot;</span>
-<span class="cp">#include &quot;proton/container.hpp&quot;</span>
-<span class="cp">#include &quot;proton/event.hpp&quot;</span>
-<span class="cp">#include &quot;proton/handler.hpp&quot;</span>
-<span class="cp">#include &quot;proton/connection.hpp&quot;</span>
+<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;options.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/container.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/event.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/handler.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/connection.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &lt;iostream&gt;</span>
-<span class="cp">#include &lt;vector&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;vector&gt;</span><span class="cp"></span>
 
 <span class="k">class</span> <span class="nc">client</span> <span class="o">:</span> <span class="k">public</span> <span class="n">proton</span><span class="o">::</span><span class="n">handler</span> <span class="p">{</span>
   <span class="k">private</span><span class="o">:</span>
@@ -177,7 +177,7 @@ https://github.com/apache/qpid-proton/bl
 
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="sc">&#39;a&#39;</span><span class="p">,</span> <span class="s">&quot;address&quot;</span><span class="p">,</span> <span class="s">&quot;connect and send to URL&quot;</span><span class="p">,</span> <span class="s">&quot;URL&quot;</span><span class="p">);</span>
 
-    <span class="n">try</span> <span class="p">{</span>
+    <span class="k">try</span> <span class="p">{</span>
         <span class="n">opts</span><span class="p">.</span><span class="n">parse</span><span class="p">();</span>
 
         <span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="o">&gt;</span> <span class="n">requests</span><span class="p">;</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/connection_options.cpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/connection_options.cpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/connection_options.cpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/connection_options.cpp.html Thu Mar 24 12:41:32 2016
@@ -116,13 +116,13 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>connection_options.cpp</h1>
-<div class="highlight"><pre><span class="cp">#include &quot;proton/container.hpp&quot;</span>
-<span class="cp">#include &quot;proton/handler.hpp&quot;</span>
-<span class="cp">#include &quot;proton/event.hpp&quot;</span>
-<span class="cp">#include &quot;proton/url.hpp&quot;</span>
-<span class="cp">#include &quot;proton/transport.hpp&quot;</span>
+<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;proton/container.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/handler.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/event.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/url.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/transport.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &lt;iostream&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
 
 <span class="k">using</span> <span class="n">proton</span><span class="o">::</span><span class="n">connection_options</span><span class="p">;</span>
 
@@ -156,7 +156,7 @@ https://github.com/apache/qpid-proton/bl
 <span class="p">};</span>
 
 <span class="kt">int</span> <span class="nf">main</span><span class="p">(</span><span class="kt">int</span> <span class="n">argc</span><span class="p">,</span> <span class="kt">char</span> <span class="o">**</span><span class="n">argv</span><span class="p">)</span> <span class="p">{</span>
-    <span class="n">try</span> <span class="p">{</span>
+    <span class="k">try</span> <span class="p">{</span>
         <span class="n">std</span><span class="o">::</span><span class="n">string</span> <span class="n">url</span> <span class="o">=</span> <span class="n">argc</span> <span class="o">&gt;</span> <span class="mi">1</span> <span class="o">?</span> <span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">:</span> <span class="s">&quot;127.0.0.1:5672/examples&quot;</span><span class="p">;</span>
         <span class="n">main_handler</span> <span class="n">handler</span><span class="p">(</span><span class="n">url</span><span class="p">);</span>
         <span class="n">proton</span><span class="o">::</span><span class="n">container</span> <span class="n">container</span><span class="p">(</span><span class="n">handler</span><span class="p">);</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_recv.cpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_recv.cpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_recv.cpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_recv.cpp.html Thu Mar 24 12:41:32 2016
@@ -116,18 +116,18 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>direct_recv.cpp</h1>
-<div class="highlight"><pre><span class="cp">#include &quot;options.hpp&quot;</span>
+<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;options.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &quot;proton/container.hpp&quot;</span>
-<span class="cp">#include &quot;proton/acceptor.hpp&quot;</span>
-<span class="cp">#include &quot;proton/event.hpp&quot;</span>
-<span class="cp">#include &quot;proton/handler.hpp&quot;</span>
-<span class="cp">#include &quot;proton/link.hpp&quot;</span>
-<span class="cp">#include &quot;proton/url.hpp&quot;</span>
-<span class="cp">#include &quot;proton/value.hpp&quot;</span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/container.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/acceptor.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/event.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/handler.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/link.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/url.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/value.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &lt;iostream&gt;</span>
-<span class="cp">#include &lt;map&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;map&gt;</span><span class="cp"></span>
 
 <span class="k">class</span> <span class="nc">direct_recv</span> <span class="o">:</span> <span class="k">public</span> <span class="n">proton</span><span class="o">::</span><span class="n">handler</span> <span class="p">{</span>
   <span class="k">private</span><span class="o">:</span>
@@ -173,7 +173,7 @@ https://github.com/apache/qpid-proton/bl
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">address</span><span class="p">,</span> <span class="sc">&#39;a&#39;</span><span class="p">,</span> <span class="s">&quot;address&quot;</span><span class="p">,</span> <span class="s">&quot;listen and receive on URL&quot;</span><span class="p">,</span> <span class="s">&quot;URL&quot;</span><span class="p">);</span>
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">message_count</span><span class="p">,</span> <span class="sc">&#39;m&#39;</span><span class="p">,</span> <span class="s">&quot;messages&quot;</span><span class="p">,</span> <span class="s">&quot;receive COUNT messages&quot;</span><span class="p">,</span> <span class="s">&quot;COUNT&quot;</span><span class="p">);</span>
 
-    <span class="n">try</span> <span class="p">{</span>
+    <span class="k">try</span> <span class="p">{</span>
         <span class="n">opts</span><span class="p">.</span><span class="n">parse</span><span class="p">();</span>
 
         <span class="n">direct_recv</span> <span class="n">recv</span><span class="p">(</span><span class="n">address</span><span class="p">,</span> <span class="n">message_count</span><span class="p">);</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_send.cpp.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_send.cpp.html?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_send.cpp.html (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/direct_send.cpp.html Thu Mar 24 12:41:32 2016
@@ -116,17 +116,17 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>direct_send.cpp</h1>
-<div class="highlight"><pre><span class="cp">#include &quot;options.hpp&quot;</span>
+<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf">&quot;options.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &quot;proton/acceptor.hpp&quot;</span>
-<span class="cp">#include &quot;proton/connection.hpp&quot;</span>
-<span class="cp">#include &quot;proton/container.hpp&quot;</span>
-<span class="cp">#include &quot;proton/event.hpp&quot;</span>
-<span class="cp">#include &quot;proton/handler.hpp&quot;</span>
-<span class="cp">#include &quot;proton/value.hpp&quot;</span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/acceptor.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/connection.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/container.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/event.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/handler.hpp&quot;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&quot;proton/value.hpp&quot;</span><span class="cp"></span>
 
-<span class="cp">#include &lt;iostream&gt;</span>
-<span class="cp">#include &lt;map&gt;</span>
+<span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span>
+<span class="cp">#include</span> <span class="cpf">&lt;map&gt;</span><span class="cp"></span>
 
 <span class="k">class</span> <span class="nc">simple_send</span> <span class="o">:</span> <span class="k">public</span> <span class="n">proton</span><span class="o">::</span><span class="n">handler</span> <span class="p">{</span>
   <span class="k">private</span><span class="o">:</span>
@@ -184,7 +184,7 @@ https://github.com/apache/qpid-proton/bl
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">address</span><span class="p">,</span> <span class="sc">&#39;a&#39;</span><span class="p">,</span> <span class="s">&quot;address&quot;</span><span class="p">,</span> <span class="s">&quot;listen and send on URL&quot;</span><span class="p">,</span> <span class="s">&quot;URL&quot;</span><span class="p">);</span>
     <span class="n">opts</span><span class="p">.</span><span class="n">add_value</span><span class="p">(</span><span class="n">message_count</span><span class="p">,</span> <span class="sc">&#39;m&#39;</span><span class="p">,</span> <span class="s">&quot;messages&quot;</span><span class="p">,</span> <span class="s">&quot;send COUNT messages&quot;</span><span class="p">,</span> <span class="s">&quot;COUNT&quot;</span><span class="p">);</span>
 
-    <span class="n">try</span> <span class="p">{</span>
+    <span class="k">try</span> <span class="p">{</span>
         <span class="n">opts</span><span class="p">.</span><span class="n">parse</span><span class="p">();</span>
 
         <span class="n">simple_send</span> <span class="n">send</span><span class="p">(</span><span class="n">address</span><span class="p">,</span> <span class="n">message_count</span><span class="p">);</span>

Modified: qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/encode_decode.cpp
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/encode_decode.cpp?rev=1736439&r1=1736438&r2=1736439&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/encode_decode.cpp (original)
+++ qpid/site/docs/releases/qpid-proton-master/proton/cpp/examples/encode_decode.cpp Thu Mar 24 12:41:32 2016
@@ -17,16 +17,14 @@
  * under the License.
  */
 
-#include <proton/value.hpp>
-#include <proton/symbol.hpp>
+#include <proton/types.hpp>
+#include <proton/encoder.hpp>
+#include <proton/decoder.hpp>
+
 #include <algorithm>
 #include <iostream>
 #include <iterator>
-#include <map>
 #include <sstream>
-#include <vector>
-#include <list>
-
 
 // Examples of how to use the encoder and decoder to create and examine AMQP values.
 //
@@ -77,7 +75,7 @@ void uniform_containers() {
     std::cout << a1 << std::endl;
 
     // You can specify that a container should be encoded as an AMQP list instead.
-    v = proton::internal::as<proton::LIST>(a1);
+    v = proton::codec::encoder::list(a1);
     print(v);
     std::cout << v.get<std::vector<int> >() << std::endl;
 
@@ -89,17 +87,27 @@ void uniform_containers() {
     print(v);
     std::cout << v.get<std::map<std::string, int> >() << std::endl;
 
-    // You can convert a sequence of pairs to an AMQP map if you need to control the
-    // encoded ordering.
+    // A sequence of pairs encodes as an AMQP MAP, which lets you control the encoded order.
     std::vector<std::pair<std::string, int> > pairs;
     pairs.push_back(std::make_pair("z", 3));
     pairs.push_back(std::make_pair("a", 4));
-    v = proton::internal::as<proton::MAP>(pairs);
+    v = pairs;
     print(v);
-    // You can also decode an AMQP map as a sequence of pairs using decoder() and proton::to_pairs
+
+    // You can also decode an AMQP map as a sequence of pairs to preserve encode order.
     std::vector<std::pair<std::string, int> > pairs2;
-    v.decode() >> proton::internal::to_pairs(pairs2);
+    proton::codec::decoder d(v);
+    d >> pairs2;
     std::cout << pairs2 << std::endl;
+
+    // A vector of proton::value is normally encoded as a mixed-type AMQP LIST,
+    // but you can encoded it as an array provided all the values match the array type.
+    std::vector<proton::value> vv;
+    vv.push_back(proton::value("a"));
+    vv.push_back(proton::value("b"));
+    vv.push_back(proton::value("c"));
+    v = vv;
+    print(v);
 }
 
 // Containers with mixed types use value to represent arbitrary AMQP types.
@@ -132,22 +140,25 @@ void insert_stream_operators() {
     proton::value v;
 
     // Create an array of INT with values [1, 2, 3]
-    v.encode() << proton::internal::start::array(proton::INT)
-               << int32_t(1) << int32_t(2) << int32_t(3)
-               << proton::internal::finish();
+    proton::codec::encoder e(v);
+    e << proton::codec::start::array(proton::INT)
+      << int32_t(1) << int32_t(2) << int32_t(3)
+      << proton::codec::finish();
     print(v);
 
     // Create a mixed-type list of the values [42, false, "x"].
-    v.encode() << proton::internal::start::list()
-               << int32_t(42) << false << proton::symbol("x")
-               << proton::internal::finish();
+    proton::codec::encoder e2(v);
+    e2 << proton::codec::start::list()
+       << int32_t(42) << false << proton::symbol("x")
+       << proton::codec::finish();
     print(v);
 
     // Create a map { "k1":42, "k2": false }
-    v.encode() << proton::internal::start::map()
-               << "k1" << int32_t(42)
-               << proton::symbol("k2") << false
-               << proton::internal::finish();
+    proton::codec::encoder e3(v);
+    e3 << proton::codec::start::map()
+       << "k1" << int32_t(42)
+       << proton::symbol("k2") << false
+       << proton::codec::finish();
     print(v);
 }
 
@@ -168,9 +179,9 @@ int main(int, char**) {
 // NOTE this is for example puroses only: There is a built in ostream operator<< for values.
 //
 //
-void print_next(proton::internal::decoder& d) {
-    proton::type_id type = d.type();
-    proton::internal::start s;
+void print_next(proton::codec::decoder& d) {
+    proton::type_id type = d.next_type();
+    proton::codec::start s;
     switch (type) {
       case proton::ARRAY: {
           d >> s;
@@ -185,7 +196,7 @@ void print_next(proton::internal::decode
               print_next(d);
           }
           std::cout << "]";
-          d >> proton::internal::finish();
+          d >> proton::codec::finish();
           break;
       }
       case proton::LIST: {
@@ -196,7 +207,7 @@ void print_next(proton::internal::decode
               print_next(d);
           }
           std::cout << "]";
-          d >> proton::internal::finish();
+          d >> proton::codec::finish();
           break;
       }
       case proton::MAP: {
@@ -209,7 +220,7 @@ void print_next(proton::internal::decode
               print_next(d);
           }
           std::cout << "}";
-          d >> proton::internal::finish();
+          d >> proton::codec::finish();
           break;
       }
       case proton::DESCRIBED: {
@@ -217,7 +228,7 @@ void print_next(proton::internal::decode
           std::cout << "described(";
           print_next(d);      // Descriptor
           print_next(d);      // value
-          d >> proton::internal::finish();
+          d >> proton::codec::finish();
           break;
       }
       default:
@@ -231,7 +242,7 @@ void print_next(proton::internal::decode
 
 // Print a value, for example purposes. Normal code can use operator<<
 void print(proton::value& v) {
-    proton::internal::decoder d = v.decode();
+    proton::codec::decoder d(v);
     d.rewind();
     while (d.more()) {
         print_next(d);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message