<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/base/SetRelationMixin.cc 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"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </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"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('SetRelationMixin_8cc_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">SetRelationMixin.cc</div> </div> </div><!--header--> <div class="contents"> <a href="SetRelationMixin_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <map></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="SetRelationMixin_8h.html">zypp/base/SetRelationMixin.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="structzypp_1_1ESetCompareDef.html#a1f7e00bfa509f483223a7643b7fccd88"> 18</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="structzypp_1_1ESetCompareDef.html#a1f7e00bfa509f483223a7643b7fccd88">ESetCompareDef::asString</a>( <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6">Enum</a> val_r )</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="keyword">static</span> std::map<Enum,std::string> <a class="code" href="namespacezypp_1_1repo.html#a78bc6fe2197a466e5523b8f9d1b352e3">_table</a> = {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  { <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6ac9becb80da1c349f802ec21811142235">uncomparable</a>, <span class="stringliteral">"{?}"</span> },</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  { <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6af6f67c944f51456206c63a7037d78b1f">equal</a>, <span class="stringliteral">"{=}"</span> },</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  { <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6ab784fd38460500e9f8c57b7b261f32cd">properSubset</a>, <span class="stringliteral">"{<}"</span> },</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  { <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6aac8c15e098ef4251905da073a7c7a7d4">properSuperset</a>, <span class="stringliteral">"{>}"</span> },</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  { <a class="code" href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6a8f6c7011236b9ce799d56db805f58a69">disjoint</a>, <span class="stringliteral">"{ }"</span> },</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  };</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">return</span> <a class="code" href="namespacezypp_1_1repo.html#a78bc6fe2197a466e5523b8f9d1b352e3">_table</a>[val_r];</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> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structzypp_1_1ESetRelationDef.html#a9717c95d1c7cd0ad3918057364a47cf6"> 30</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="structzypp_1_1ESetRelationDef.html#a9717c95d1c7cd0ad3918057364a47cf6">ESetRelationDef::asString</a>( <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9a">Enum</a> val_r )</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">static</span> std::map<Enum,std::string> <a class="code" href="namespacezypp_1_1repo.html#a78bc6fe2197a466e5523b8f9d1b352e3">_table</a> = {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa506254dca3297571bb1d02b59004b26c">uncomparable</a>, <span class="stringliteral">"{??}"</span> },</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa4134486dc7b3e4bc59b1f01a51fbd954">equal</a>, <span class="stringliteral">"{==}"</span> },</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa6ea8daf3c91dc9ce47b58a89b2b17513">properSubset</a>, <span class="stringliteral">"{<<}"</span> },</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa5302e7368dbd1dd4e19e7ca0623c0113">properSuperset</a>, <span class="stringliteral">"{>>}"</span> },</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aacf8239cfc6180d04aaa1791e85e42b8f">disjoint</a>, <span class="stringliteral">"{ }"</span> },</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aabac538b9031b85b8d44f12b866d0ede5">subset</a>, <span class="stringliteral">"{<=}"</span> },</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  { <a class="code" href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa47a62feb86fb0cdf59091ffa160ecc4d">superset</a>, <span class="stringliteral">"{>=}"</span> },</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="keywordflow">return</span> <a class="code" href="namespacezypp_1_1repo.html#a78bc6fe2197a466e5523b8f9d1b352e3">_table</a>[val_r];</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <span class="comment">// namespace zypp</span></div><div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aa4134486dc7b3e4bc59b1f01a51fbd954"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa4134486dc7b3e4bc59b1f01a51fbd954">zypp::ESetRelationDef::equal</a></div><div class="ttdoc">"{==}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00060">SetRelationMixin.h:60</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aa506254dca3297571bb1d02b59004b26c"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa506254dca3297571bb1d02b59004b26c">zypp::ESetRelationDef::uncomparable</a></div><div class="ttdoc">"{??}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00059">SetRelationMixin.h:59</a></div></div> <div class="ttc" id="namespacezypp_1_1repo_html_a78bc6fe2197a466e5523b8f9d1b352e3"><div class="ttname"><a href="namespacezypp_1_1repo.html#a78bc6fe2197a466e5523b8f9d1b352e3">zypp::repo::_table</a></div><div class="ttdeci">static std::map< std::string, ServiceType::Type > _table</div><div class="ttdef"><b>Definition:</b> <a href="ServiceType_8cc_source.html#l00021">ServiceType.cc:21</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_a9717c95d1c7cd0ad3918057364a47cf6"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#a9717c95d1c7cd0ad3918057364a47cf6">zypp::ESetRelationDef::asString</a></div><div class="ttdeci">static const std::string & asString(Enum val_r)</div><div class="ttdoc">String representantion.</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8cc_source.html#l00030">SetRelationMixin.cc:30</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6a8f6c7011236b9ce799d56db805f58a69"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6a8f6c7011236b9ce799d56db805f58a69">zypp::ESetCompareDef::disjoint</a></div><div class="ttdoc">"{ }"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00034">SetRelationMixin.h:34</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aabac538b9031b85b8d44f12b866d0ede5"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aabac538b9031b85b8d44f12b866d0ede5">zypp::ESetRelationDef::subset</a></div><div class="ttdoc">"{<=}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00064">SetRelationMixin.h:64</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6ac9becb80da1c349f802ec21811142235"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6ac9becb80da1c349f802ec21811142235">zypp::ESetCompareDef::uncomparable</a></div><div class="ttdoc">"{?}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00030">SetRelationMixin.h:30</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6af6f67c944f51456206c63a7037d78b1f"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6af6f67c944f51456206c63a7037d78b1f">zypp::ESetCompareDef::equal</a></div><div class="ttdoc">"{=}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00031">SetRelationMixin.h:31</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aa47a62feb86fb0cdf59091ffa160ecc4d"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa47a62feb86fb0cdf59091ffa160ecc4d">zypp::ESetRelationDef::superset</a></div><div class="ttdoc">"{>=}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00065">SetRelationMixin.h:65</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6">zypp::ESetCompareDef::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00029">SetRelationMixin.h:29</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9a"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9a">zypp::ESetRelationDef::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00058">SetRelationMixin.h:58</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6aac8c15e098ef4251905da073a7c7a7d4"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6aac8c15e098ef4251905da073a7c7a7d4">zypp::ESetCompareDef::properSuperset</a></div><div class="ttdoc">"{>}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00033">SetRelationMixin.h:33</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a1f7e00bfa509f483223a7643b7fccd88"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a1f7e00bfa509f483223a7643b7fccd88">zypp::ESetCompareDef::asString</a></div><div class="ttdeci">static const std::string & asString(Enum val_r)</div><div class="ttdoc">String representantion.</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8cc_source.html#l00018">SetRelationMixin.cc:18</a></div></div> <div class="ttc" id="structzypp_1_1ESetCompareDef_html_a5a4ccf43795d514b7f123fc529a4e9a6ab784fd38460500e9f8c57b7b261f32cd"><div class="ttname"><a href="structzypp_1_1ESetCompareDef.html#a5a4ccf43795d514b7f123fc529a4e9a6ab784fd38460500e9f8c57b7b261f32cd">zypp::ESetCompareDef::properSubset</a></div><div class="ttdoc">"{<}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00032">SetRelationMixin.h:32</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aacf8239cfc6180d04aaa1791e85e42b8f"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aacf8239cfc6180d04aaa1791e85e42b8f">zypp::ESetRelationDef::disjoint</a></div><div class="ttdoc">"{ }"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00063">SetRelationMixin.h:63</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aa6ea8daf3c91dc9ce47b58a89b2b17513"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa6ea8daf3c91dc9ce47b58a89b2b17513">zypp::ESetRelationDef::properSubset</a></div><div class="ttdoc">"{<<}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00061">SetRelationMixin.h:61</a></div></div> <div class="ttc" id="structzypp_1_1ESetRelationDef_html_ab1a3c4014adf99503bdc3e40d9d9ac9aa5302e7368dbd1dd4e19e7ca0623c0113"><div class="ttname"><a href="structzypp_1_1ESetRelationDef.html#ab1a3c4014adf99503bdc3e40d9d9ac9aa5302e7368dbd1dd4e19e7ca0623c0113">zypp::ESetRelationDef::properSuperset</a></div><div class="ttdoc">"{>>}"</div><div class="ttdef"><b>Definition:</b> <a href="SetRelationMixin_8h_source.html#l00062">SetRelationMixin.h:62</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="SetRelationMixin_8h_html"><div class="ttname"><a href="SetRelationMixin_8h.html">SetRelationMixin.h</a></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_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="dir_76651d3a0256a4372f696a008d71ee69.html">base</a></li><li class="navelem"><a class="el" href="SetRelationMixin_8cc.html">SetRelationMixin.cc</a></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.15 </li> </ul> </div> </body> </html>