http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/backend_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/backend_8hpp.html b/content/api/latest/c++/backend_8hpp.html new file mode 100644 index 0000000..46f9238 --- /dev/null +++ b/content/api/latest/c++/backend_8hpp.html @@ -0,0 +1,90 @@ +<!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.5"/> +<title>Apache Mesos: src/slave/containerizer/mesos/provisioner/backend.hpp File Reference</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="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 style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80f0d4a0945c74dfa611dba2ec326a39.html">slave</a></li><li class="navelem"><a class="el" href="dir_fbb1f3397356a940a2dbc4baf07ee5bb.html">containerizer</a></li><li class="navelem"><a class="el" href="dir_06602996fd31a3e264808d1450975cb2.html">mesos</a></li><li class="navelem"><a class="el" href="dir_f319675d4a0209ee44e08f6c8dad3e25.html">provisioner</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> </div> + <div class="headertitle"> +<div class="title">backend.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <string></code><br/> +<code>#include <vector></code><br/> +<code>#include <<a class="el" href="future_8hpp_source.html">process/future.hpp</a>></code><br/> +<code>#include <<a class="el" href="owned_8hpp_source.html">process/owned.hpp</a>></code><br/> +<code>#include <<a class="el" href="hashmap_8hpp_source.html">stout/hashmap.hpp</a>></code><br/> +<code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br/> +<code>#include "<a class="el" href="src_2slave_2flags_8hpp_source.html">slave/flags.hpp</a>"</code><br/> +</div> +<p><a href="backend_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmesos_1_1internal_1_1slave_1_1Backend.html">mesos::internal::slave::Backend</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespacemesos"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos.html">mesos</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespacemesos_1_1internal"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos_1_1internal.html">mesos::internal</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespacemesos_1_1internal_1_1slave"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos_1_1internal_1_1slave.html">mesos::internal::slave</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/backend_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/backend_8hpp_source.html b/content/api/latest/c++/backend_8hpp_source.html new file mode 100644 index 0000000..ace8a53 --- /dev/null +++ b/content/api/latest/c++/backend_8hpp_source.html @@ -0,0 +1,145 @@ +<!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.5"/> +<title>Apache Mesos: src/slave/containerizer/mesos/provisioner/backend.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="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 style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80f0d4a0945c74dfa611dba2ec326a39.html">slave</a></li><li class="navelem"><a class="el" href="dir_fbb1f3397356a940a2dbc4baf07ee5bb.html">containerizer</a></li><li class="navelem"><a class="el" href="dir_06602996fd31a3e264808d1450975cb2.html">mesos</a></li><li class="navelem"><a class="el" href="dir_f319675d4a0209ee44e08f6c8dad3e25.html">provisioner</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">backend.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="backend_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="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// limitations under the License.</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __PROVISIONER_BACKEND_HPP__</span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __PROVISIONER_BACKEND_HPP__</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <vector></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 <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="owned_8hpp.html">process/owned.hpp</a>></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 <<a class="code" href="hashmap_8hpp.html">stout/hashmap.hpp</a>></span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.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="preprocessor">#include "<a class="code" href="src_2slave_2flags_8hpp.html">slave/flags.hpp</a>"</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="keyword">namespace </span>mesos {</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span>internal {</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>slave {</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">// Provision a root filesystem for a container.</span></div> +<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1slave_1_1Backend.html"> 36</a></span> <span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1slave_1_1Backend.html">Backend</a></div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1slave_1_1Backend.html#aa6b2428c4e90104f8cb2f87153880177"> 39</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Backend.html#aa6b2428c4e90104f8cb2f87153880177">~Backend</a>() {}</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// Return a map of all supported backends keyed by their names. Note</span></div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// that Backends that failed to be created due to incorrect flags are</span></div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// simply not added to the result.</span></div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">static</span> <a class="code" href="classhashmap.html">hashmap<std::string, process::Owned<Backend></a>> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Backend.html#a819cd481f00e74f1ab27429ba7217c99">create</a>(</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Flags.html">Flags</a>& <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">flags</a>);</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// Provision a root filesystem for a container into the specified 'rootfs'</span></div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">// directory by applying the specified list of root filesystem layers in</span></div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// the list order, i.e., files in a layer can overwrite/shadow those from</span></div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// another layer earlier in the list.</span></div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Backend.html#aebde8461695237e9b631cc3c5cf2b091">provision</a>(</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">const</span> std::vector<std::string>& layers,</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> std::string& rootfs,</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> std::string& backendDir) = 0;</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// Destroy the root filesystem provisioned at the specified 'rootfs'</span></div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// directory. Return false if there is no provisioned root filesystem</span></div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// to destroy for the given directory.</span></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future<bool></a> <a class="code" href="classmesos_1_1internal_1_1slave_1_1Backend.html#a582e42b6c43ee1c4c31bd53f3539dffa">destroy</a>(</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">const</span> std::string& rootfs,</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">const</span> std::string& backendDir) = 0;</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> };</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="comment">// namespace slave {</span></div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> } <span class="comment">// namespace internal {</span></div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> } <span class="comment">// namespace mesos {</span></div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#endif // __PROVISIONER_BACKEND_HPP__</span></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Backend_html_a582e42b6c43ee1c4c31bd53f3539dffa"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Backend.html#a582e42b6c43ee1c4c31bd53f3539dffa">mesos::internal::slave::Backend::destroy</a></div><div class="ttdeci">virtual process::Future< bool > destroy(const std::string &rootfs, const std::string &backendDir)=0</div></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Flags_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Flags.html">mesos::internal::slave::Flags</a></div><div class="ttdef"><b>Definition:</b> flags.hpp:38</div></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Backend_html_aebde8461695237e9b631cc3c5cf2b091"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Backend.html#aebde8461695237e9b631cc3c5cf2b091">mesos::internal::slave::Backend::provision</a></div><div class="ttdeci">virtual process::Future< Nothing > provision(const std::vector< std::string > &layers, const std::string &rootfs, const std::string &backendDir)=0</div></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Backend_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Backend.html">mesos::internal::slave::Backend</a></div><div class="ttdef"><b>Definition:</b> backend.hpp:36</div></div> +<div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap</a></div><div class="ttdef"><b>Definition:</b> hashmap.hpp:36</div></div> +<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> +<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Backend_html_aa6b2428c4e90104f8cb2f87153880177"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Backend.html#aa6b2428c4e90104f8cb2f87153880177">mesos::internal::slave::Backend::~Backend</a></div><div class="ttdeci">virtual ~Backend()</div><div class="ttdef"><b>Definition:</b> backend.hpp:39</div></div> +<div class="ttc" id="classmesos_1_1internal_1_1slave_1_1Backend_html_a819cd481f00e74f1ab27429ba7217c99"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1Backend.html#a819cd481f00e74f1ab27429ba7217c99">mesos::internal::slave::Backend::create</a></div><div class="ttdeci">static hashmap< std::string, process::Owned< Backend > > create(const Flags &flags)</div></div> +<div class="ttc" id="src_2slave_2flags_8hpp_html"><div class="ttname"><a href="src_2slave_2flags_8hpp.html">flags.hpp</a></div></div> +<div class="ttc" id="owned_8hpp_html"><div class="ttname"><a href="owned_8hpp.html">owned.hpp</a></div></div> +<div class="ttc" id="hashmap_8hpp_html"><div class="ttname"><a href="hashmap_8hpp.html">hashmap.hpp</a></div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_af8289f648a916c3f66923867452c7b1b"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">mesos::internal::tests::flags</a></div><div class="ttdeci">Flags flags</div></div> +<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future< Nothing ></a></div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/base64_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/base64_8hpp.html b/content/api/latest/c++/base64_8hpp.html new file mode 100644 index 0000000..1f1cbf6 --- /dev/null +++ b/content/api/latest/c++/base64_8hpp.html @@ -0,0 +1,109 @@ +<!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.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/base64.hpp File Reference</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="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 style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#namespaces">Namespaces</a> | +<a href="#func-members">Functions</a> | +<a href="#var-members">Variables</a> </div> + <div class="headertitle"> +<div class="title">base64.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <cctype></code><br/> +<code>#include <functional></code><br/> +<code>#include <string></code><br/> +<code>#include <<a class="el" href="foreach_8hpp_source.html">stout/foreach.hpp</a>></code><br/> +<code>#include <<a class="el" href="stringify_8hpp_source.html">stout/stringify.hpp</a>></code><br/> +<code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br/> +</div> +<p><a href="base64_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespacebase64"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64.html">base64</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespacebase64_1_1internal"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64_1_1internal.html">base64::internal</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:af0cbe84ce20cf486d088248591305818"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818">base64::internal::encode</a> (const std::string &s, const std::string &chars, bool padding)</td></tr> +<tr class="separator:af0cbe84ce20cf486d088248591305818"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a08e99be281678c1aedc09c8ede696f69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69">base64::internal::decode</a> (const std::string &s, const std::string &chars)</td></tr> +<tr class="separator:a08e99be281678c1aedc09c8ede696f69"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a47c61bb5df3dae8cd38f44b6b69e5b4d"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64.html#a47c61bb5df3dae8cd38f44b6b69e5b4d">base64::encode</a> (const std::string &s)</td></tr> +<tr class="memdesc:a47c61bb5df3dae8cd38f44b6b69e5b4d"><td class="mdescLeft"> </td><td class="mdescRight">Encode a string to Base64 with the standard Base64 alphabet. <a href="#a47c61bb5df3dae8cd38f44b6b69e5b4d">More...</a><br/></td></tr> +<tr class="separator:a47c61bb5df3dae8cd38f44b6b69e5b4d"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ab3ba01437a30ea8938faaa92e9b72948"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64.html#ab3ba01437a30ea8938faaa92e9b72948">base64::decode</a> (const std::string &s)</td></tr> +<tr class="memdesc:ab3ba01437a30ea8938faaa92e9b72948"><td class="mdescLeft"> </td><td class="mdescRight">Decode a string that is Base64-encoded with the standard Base64 alphabet. <a href="#ab3ba01437a30ea8938faaa92e9b72948">More...</a><br/></td></tr> +<tr class="separator:ab3ba01437a30ea8938faaa92e9b72948"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a684ce7ecc99e8ba6906c3a063b9ef71c"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64.html#a684ce7ecc99e8ba6906c3a063b9ef71c">base64::encode_url_safe</a> (const std::string &s, bool padding=true)</td></tr> +<tr class="memdesc:a684ce7ecc99e8ba6906c3a063b9ef71c"><td class="mdescLeft"> </td><td class="mdescRight">Encode a string to Base64 with a URL and filename safe alphabet. <a href="#a684ce7ecc99e8ba6906c3a063b9ef71c">More...</a><br/></td></tr> +<tr class="separator:a684ce7ecc99e8ba6906c3a063b9ef71c"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aae9b40e06fb97752bef369b2a0190eaf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64.html#aae9b40e06fb97752bef369b2a0190eaf">base64::decode_url_safe</a> (const std::string &s)</td></tr> +<tr class="memdesc:aae9b40e06fb97752bef369b2a0190eaf"><td class="mdescLeft"> </td><td class="mdescRight">Decode a string that is Base64-encoded with a URL and filename safe alphabet. <a href="#aae9b40e06fb97752bef369b2a0190eaf">More...</a><br/></td></tr> +<tr class="separator:aae9b40e06fb97752bef369b2a0190eaf"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> +Variables</h2></td></tr> +<tr class="memitem:a622ff5960fa75c8f838f40b5473766cc"><td class="memItemLeft" align="right" valign="top">constexpr char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc">base64::internal::STANDARD_CHARS</a> []</td></tr> +<tr class="separator:a622ff5960fa75c8f838f40b5473766cc"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:afb1eec684c43630078b7a6288cc17335"><td class="memItemLeft" align="right" valign="top">constexpr char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335">base64::internal::URL_SAFE_CHARS</a> []</td></tr> +<tr class="separator:afb1eec684c43630078b7a6288cc17335"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/base64_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/base64_8hpp_source.html b/content/api/latest/c++/base64_8hpp_source.html new file mode 100644 index 0000000..e9e9de4 --- /dev/null +++ b/content/api/latest/c++/base64_8hpp_source.html @@ -0,0 +1,255 @@ +<!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.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/base64.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="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 style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">base64.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="base64_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="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</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">// http://www.apache.org/licenses/LICENSE-2.0</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_BASE64_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __STOUT_BASE64_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <cctype></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <functional></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="foreach_8hpp.html">stout/foreach.hpp</a>></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="stringify_8hpp.html">stout/stringify.hpp</a>></span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespacebase64.html"> 24</a></span> <span class="keyword">namespace </span>base64 {</div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> +<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespacebase64_1_1internal.html"> 26</a></span> <span class="keyword">namespace </span>internal {</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="comment">// This slightly modified base64 implementation from</span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// cplusplus.com answer by modoran can be found at:</span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// http://www.cplusplus.com/forum/beginner/51572/</span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> +<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc"> 32</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc">STANDARD_CHARS</a>[] =</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="stringliteral">"ABCDEFGHIJKLMNOPQRSTUVWXYZ"</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="stringliteral">"abcdefghijklmnopqrstuvwxyz"</span></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="stringliteral">"0123456789+/"</span>;</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> +<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335"> 37</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335">URL_SAFE_CHARS</a>[] =</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="stringliteral">"ABCDEFGHIJKLMNOPQRSTUVWXYZ"</span></div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="stringliteral">"abcdefghijklmnopqrstuvwxyz"</span></div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="stringliteral">"0123456789-_"</span>;</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818"> 43</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818">encode</a>(</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">const</span> std::string& s,</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> std::string& chars,</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">bool</span> padding)</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  std::string result;</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">int</span> i = 0;</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">int</span> j = 0;</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> array3[3];</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> array4[4];</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* bytesToEncode = s.c_str();</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">size_t</span> length = s.size();</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">while</span> (length--) {</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  array3[i++] = *(bytesToEncode++);</div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (i == 3) {</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  array4[0] = (array3[0] & 0xfc) >> 2;</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  array4[1] = ((array3[0] & 0x03) << 4) + ((array3[1] & 0xf0) >> 4);</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  array4[2] = ((array3[1] & 0x0f) << 2) + ((array3[2] & 0xc0) >> 6);</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  array4[3] = array3[2] & 0x3f;</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">for</span> (i = 0; i < 4; i++) {</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  result += chars[array4[i]];</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>  i = 0;</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</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> </div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (i != 0) {</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">for</span> (j = i; j < 3; j++) {</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  array3[j] = <span class="charliteral">'\0'</span>;</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  array4[0] = (array3[0] & 0xfc) >> 2;</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  array4[1] = ((array3[0] & 0x03) << 4) + ((array3[1] & 0xf0) >> 4);</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  array4[2] = ((array3[1] & 0x0f) << 2) + ((array3[2] & 0xc0) >> 6);</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  array4[3] = array3[2] & 0x3f;</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span> (j = 0; j < i + 1; j++) {</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  result += chars[array4[j]];</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>  <span class="keywordflow">if</span> (padding) {</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">while</span> (i++ < 3) {</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  result += <span class="charliteral">'='</span>;</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</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>  <span class="keywordflow">return</span> result;</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> }</div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</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"><a class="line" href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69"> 92</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69">decode</a>(<span class="keyword">const</span> std::string& s, <span class="keyword">const</span> std::string& chars)</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> {</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">auto</span> isBase64 = [&chars](<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c) -> <span class="keywordtype">bool</span> {</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> (isalnum(c) || (c == chars[62]) || (c == chars[63]));</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</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>  <span class="keywordtype">size_t</span> i = 0;</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> array3[3];</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> array4[4];</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  std::string result;</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>  <span class="keywordflow">foreach</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c, s) {</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">if</span> (c == <span class="charliteral">'='</span>) {</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="comment">// TODO(bmahler): Note that this does not validate that</span></div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// there are the correct number of '=' characters!</span></div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">break</span>; <span class="comment">// Reached the padding.</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="keywordflow">if</span> (!isBase64(c)) {</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Invalid character '"</span> + <a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(c) + <span class="stringliteral">"'"</span>);</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> </div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  array4[i++] = c;</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (i == 4) {</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">for</span> (i = 0; i < 4; i++) {</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  array4[i] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(chars.find(array4[i]));</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  array3[0] = (array4[0] << 2) + ((array4[1] & 0x30) >> 4);</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  array3[1] = ((array4[1] & 0xf) << 4) + ((array4[2] & 0x3c) >> 2);</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  array3[2] = ((array4[2] & 0x3) << 6) + array4[3];</div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">for</span> (i = 0; i < 3; i++) {</div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  result += array3[i];</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>  i = 0;</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  }</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span> (i != 0) {</div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordtype">size_t</span> j;</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="keywordflow">for</span> (j = i; j < 4; j++) {</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  array4[j] = 0;</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">for</span> (j = 0; j < 4; j++) {</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  array4[j] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(chars.find(array4[j]));</div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  array3[0] = (array4[0] << 2) + ((array4[1] & 0x30) >> 4);</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  array3[1] = ((array4[1] & 0xf) << 4) + ((array4[2] & 0x3c) >> 2);</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  array3[2] = ((array4[2] & 0x3) << 6) + array4[3];</div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">for</span> (j = 0; (j < i - 1); j++) {</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  result += array3[j];</div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  }</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span> result;</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> }</div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div> +<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> } <span class="comment">// namespace internal {</span></div> +<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div> +<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div> +<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="namespacebase64.html#a47c61bb5df3dae8cd38f44b6b69e5b4d"> 159</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespacebase64.html#a47c61bb5df3dae8cd38f44b6b69e5b4d">encode</a>(<span class="keyword">const</span> std::string& s)</div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> {</div> +<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> <a class="code" href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818">internal::encode</a>(s, <a class="code" href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc">internal::STANDARD_CHARS</a>, <span class="keyword">true</span>);</div> +<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div> +<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="namespacebase64.html#ab3ba01437a30ea8938faaa92e9b72948"> 172</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacebase64.html#ab3ba01437a30ea8938faaa92e9b72948">decode</a>(<span class="keyword">const</span> std::string& s)</div> +<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> {</div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">return</span> <a class="code" href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69">internal::decode</a>(s, <a class="code" href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc">internal::STANDARD_CHARS</a>);</div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div> +<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="namespacebase64.html#a684ce7ecc99e8ba6906c3a063b9ef71c"> 185</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespacebase64.html#a684ce7ecc99e8ba6906c3a063b9ef71c">encode_url_safe</a>(<span class="keyword">const</span> std::string& s, <span class="keywordtype">bool</span> padding = <span class="keyword">true</span>)</div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> {</div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> <a class="code" href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818">internal::encode</a>(s, <a class="code" href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335">internal::URL_SAFE_CHARS</a>, padding);</div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> }</div> +<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div> +<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="namespacebase64.html#aae9b40e06fb97752bef369b2a0190eaf"> 198</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacebase64.html#aae9b40e06fb97752bef369b2a0190eaf">decode_url_safe</a>(<span class="keyword">const</span> std::string& s)</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> {</div> +<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> <a class="code" href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69">internal::decode</a>(s, <a class="code" href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335">internal::URL_SAFE_CHARS</a>);</div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> }</div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div> +<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> } <span class="comment">// namespace base64 {</span></div> +<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div> +<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="preprocessor">#endif // __STOUT_BASE64_HPP__</span></div> +<div class="ttc" id="namespacebase64_html_ab3ba01437a30ea8938faaa92e9b72948"><div class="ttname"><a href="namespacebase64.html#ab3ba01437a30ea8938faaa92e9b72948">base64::decode</a></div><div class="ttdeci">Try< std::string > decode(const std::string &s)</div><div class="ttdoc">Decode a string that is Base64-encoded with the standard Base64 alphabet. </div><div class="ttdef"><b>Definition:</b> base64.hpp:172</div></div> +<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div> +<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div> +<div class="ttc" id="namespacebase64_1_1internal_html_af0cbe84ce20cf486d088248591305818"><div class="ttname"><a href="namespacebase64_1_1internal.html#af0cbe84ce20cf486d088248591305818">base64::internal::encode</a></div><div class="ttdeci">std::string encode(const std::string &s, const std::string &chars, bool padding)</div><div class="ttdef"><b>Definition:</b> base64.hpp:43</div></div> +<div class="ttc" id="namespacebase64_1_1internal_html_afb1eec684c43630078b7a6288cc17335"><div class="ttname"><a href="namespacebase64_1_1internal.html#afb1eec684c43630078b7a6288cc17335">base64::internal::URL_SAFE_CHARS</a></div><div class="ttdeci">constexpr char URL_SAFE_CHARS[]</div><div class="ttdef"><b>Definition:</b> base64.hpp:37</div></div> +<div class="ttc" id="namespacebase64_html_a47c61bb5df3dae8cd38f44b6b69e5b4d"><div class="ttname"><a href="namespacebase64.html#a47c61bb5df3dae8cd38f44b6b69e5b4d">base64::encode</a></div><div class="ttdeci">std::string encode(const std::string &s)</div><div class="ttdoc">Encode a string to Base64 with the standard Base64 alphabet. </div><div class="ttdef"><b>Definition:</b> base64.hpp:159</div></div> +<div class="ttc" id="namespacebase64_html_a684ce7ecc99e8ba6906c3a063b9ef71c"><div class="ttname"><a href="namespacebase64.html#a684ce7ecc99e8ba6906c3a063b9ef71c">base64::encode_url_safe</a></div><div class="ttdeci">std::string encode_url_safe(const std::string &s, bool padding=true)</div><div class="ttdoc">Encode a string to Base64 with a URL and filename safe alphabet. </div><div class="ttdef"><b>Definition:</b> base64.hpp:185</div></div> +<div class="ttc" id="foreach_8hpp_html"><div class="ttname"><a href="foreach_8hpp.html">foreach.hpp</a></div></div> +<div class="ttc" id="stringify_8hpp_html"><div class="ttname"><a href="stringify_8hpp.html">stringify.hpp</a></div></div> +<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> +<div class="ttc" id="namespacebase64_html_aae9b40e06fb97752bef369b2a0190eaf"><div class="ttname"><a href="namespacebase64.html#aae9b40e06fb97752bef369b2a0190eaf">base64::decode_url_safe</a></div><div class="ttdeci">Try< std::string > decode_url_safe(const std::string &s)</div><div class="ttdoc">Decode a string that is Base64-encoded with a URL and filename safe alphabet. </div><div class="ttdef"><b>Definition:</b> base64.hpp:198</div></div> +<div class="ttc" id="namespacens_html_a28116b46e6543597a11733424cd1aa20"><div class="ttname"><a href="namespacens.html#a28116b46e6543597a11733424cd1aa20">ns::stringify</a></div><div class="ttdeci">std::string stringify(int flags)</div><div class="ttdef"><b>Definition:</b> ns.hpp:688</div></div> +<div class="ttc" id="namespacebase64_1_1internal_html_a622ff5960fa75c8f838f40b5473766cc"><div class="ttname"><a href="namespacebase64_1_1internal.html#a622ff5960fa75c8f838f40b5473766cc">base64::internal::STANDARD_CHARS</a></div><div class="ttdeci">constexpr char STANDARD_CHARS[]</div><div class="ttdef"><b>Definition:</b> base64.hpp:32</div></div> +<div class="ttc" id="namespacebase64_1_1internal_html_a08e99be281678c1aedc09c8ede696f69"><div class="ttname"><a href="namespacebase64_1_1internal.html#a08e99be281678c1aedc09c8ede696f69">base64::internal::decode</a></div><div class="ttdeci">Try< std::string > decode(const std::string &s, const std::string &chars)</div><div class="ttdef"><b>Definition:</b> base64.hpp:92</div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/basic_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/basic_8hpp.html b/content/api/latest/c++/basic_8hpp.html new file mode 100644 index 0000000..2e8e0b0 --- /dev/null +++ b/content/api/latest/c++/basic_8hpp.html @@ -0,0 +1,140 @@ +<!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.5"/> +<title>Apache Mesos: src/linux/routing/filter/basic.hpp File Reference</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="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 style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_a18918b93668b435612395bbc2e8b82b.html">linux</a></li><li class="navelem"><a class="el" href="dir_cfcc063d6e54f12d25bee1413151fa14.html">routing</a></li><li class="navelem"><a class="el" href="dir_63ee66d07d6d294d2c7a805464cff705.html">filter</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> | +<a href="#define-members">Macros</a> | +<a href="#func-members">Functions</a> </div> + <div class="headertitle"> +<div class="title">basic.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <stdint.h></code><br/> +<code>#include <string></code><br/> +<code>#include <<a class="el" href="option_8hpp_source.html">stout/option.hpp</a>></code><br/> +<code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br/> +<code>#include "<a class="el" href="handle_8hpp_source.html">linux/routing/handle.hpp</a>"</code><br/> +<code>#include "<a class="el" href="action_8hpp_source.html">linux/routing/filter/action.hpp</a>"</code><br/> +<code>#include "<a class="el" href="src_2linux_2routing_2filter_2filter_8hpp_source.html">linux/routing/filter/filter.hpp</a>"</code><br/> +<code>#include "<a class="el" href="priority_8hpp_source.html">linux/routing/filter/priority.hpp</a>"</code><br/> +</div> +<p><a href="basic_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structrouting_1_1filter_1_1basic_1_1Classifier.html">routing::filter::basic::Classifier</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespacerouting"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting.html">routing</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespacerouting_1_1filter"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter.html">routing::filter</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:namespacerouting_1_1filter_1_1basic"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html">routing::filter::basic</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> +Macros</h2></td></tr> +<tr class="memitem:a5709fe3da7594eb4027472f7e00d63ef"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="basic_8hpp.html#a5709fe3da7594eb4027472f7e00d63ef">ETH_P_ALL</a>   0x0003</td></tr> +<tr class="separator:a5709fe3da7594eb4027472f7e00d63ef"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:afa42b2e3b045eee5ff65adcd36c265ef"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="basic_8hpp.html#afa42b2e3b045eee5ff65adcd36c265ef">ETH_P_ARP</a>   0x0806</td></tr> +<tr class="separator:afa42b2e3b045eee5ff65adcd36c265ef"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:a4a0bd9f850acdad91233da0e33907f4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#a4a0bd9f850acdad91233da0e33907f4c">routing::filter::basic::exists</a> (const std::string &link, const Handle &parent, uint16_t protocol)</td></tr> +<tr class="separator:a4a0bd9f850acdad91233da0e33907f4c"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a35b72778ac9c32776fdbdda05a74cf70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#a35b72778ac9c32776fdbdda05a74cf70">routing::filter::basic::create</a> (const std::string &link, const Handle &parent, uint16_t protocol, const <a class="el" href="classOption.html">Option</a>< Priority > &priority, const <a class="el" href="classOption.html">Option</a>< Handle > &classid)</td></tr> +<tr class="separator:a35b72778ac9c32776fdbdda05a74cf70"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a6a5bfcdf3d5b624762f7502e7445e4b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#a6a5bfcdf3d5b624762f7502e7445e4b2">routing::filter::basic::create</a> (const std::string &link, const Handle &parent, uint16_t protocol, const <a class="el" href="classOption.html">Option</a>< Priority > &priority, const action::Redirect &redirect)</td></tr> +<tr class="separator:a6a5bfcdf3d5b624762f7502e7445e4b2"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aa26c91ed9e4507d8db64973e218cfc16"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#aa26c91ed9e4507d8db64973e218cfc16">routing::filter::basic::create</a> (const std::string &link, const Handle &parent, uint16_t protocol, const <a class="el" href="classOption.html">Option</a>< Priority > &priority, const action::Mirror &mirror)</td></tr> +<tr class="separator:aa26c91ed9e4507d8db64973e218cfc16"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a3fcdeaa15126580e2837799b1f66f3d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#a3fcdeaa15126580e2837799b1f66f3d4">routing::filter::basic::remove</a> (const std::string &link, const Handle &parent, uint16_t protocol)</td></tr> +<tr class="separator:a3fcdeaa15126580e2837799b1f66f3d4"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a088d88712e011acb0673da92045b365b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacerouting_1_1filter_1_1basic.html#a088d88712e011acb0673da92045b365b">routing::filter::basic::update</a> (const std::string &link, const Handle &parent, uint16_t protocol, const action::Mirror &mirror)</td></tr> +<tr class="separator:a088d88712e011acb0673da92045b365b"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<h2 class="groupheader">Macro Definition Documentation</h2> +<a class="anchor" id="a5709fe3da7594eb4027472f7e00d63ef"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define ETH_P_ALL   0x0003</td> + </tr> + </table> +</div><div class="memdoc"> + +</div> +</div> +<a class="anchor" id="afa42b2e3b045eee5ff65adcd36c265ef"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define ETH_P_ARP   0x0806</td> + </tr> + </table> +</div><div class="memdoc"> + +</div> +</div> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html>