<!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/ResolverProblem.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('ResolverProblem_8cc_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">ResolverProblem.cc</div> </div> </div><!--header--> <div class="contents"> <a href="ResolverProblem_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">/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/* ResolverProblem.cc</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"> * Easy-to use interface to the ZYPP dependency resolver</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"> * Copyright (C) 2000-2002 Ximian, Inc.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Copyright (C) 2005 SUSE Linux Products GmbH</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"> * This program is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * modify it under the terms of the GNU General Public License,</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * version 2, as published by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * General Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * 02111-1307, USA.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="LogTools_8h.html">zypp/base/LogTools.h</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="ResolverProblem_8h.html">zypp/ResolverProblem.h</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="ProblemSolution_8h.html">zypp/ProblemSolution.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">using</span> std::endl;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="namespacezypp.html#afdd1ae180b46ec5116b6e99ad61f3d2f">IMPL_PTR_TYPE</a>(ResolverProblem);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">namespace</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// HACK for bsc#985674: filter duplicate solutions</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">//</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> solutionInList( <span class="keyword">const</span> <a class="code" href="namespacezypp.html#af6f748c10ae9f94534b7bc7ac0c9ba2a">ProblemSolutionList</a> & solutions_r, <span class="keyword">const</span> ProblemSolution_Ptr & solution_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="keywordflow">for</span> ( <span class="keyword">const</span> ProblemSolution_Ptr & solution : solutions_r )</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">if</span> ( solution->description() == solution_r->description()</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  && solution->details() == solution_r->details()</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  && solution->actions().size() == solution_r->actions().size() )</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  } <span class="comment">// namespace</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"></span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html"> 59</a></span>  <span class="keyword">struct </span><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">ResolverProblem::Impl</a></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#a8ad08889cf461d9c47e4f37b5e78f496"> 61</a></span>  <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a8ad08889cf461d9c47e4f37b5e78f496">Impl</a>()</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"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#aa244993a3bef4880b7881e7b6f149cce"> 64</a></span>  <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#aa244993a3bef4880b7881e7b6f149cce">Impl</a>( std::string && <a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a> )</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  : <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">_description</a>( <a class="code" href="namespacestd.html">std</a>::move(<a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a>) )</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</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"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#af70c7a6b6630cb43ca1b4519a7d4464b"> 68</a></span>  <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#af70c7a6b6630cb43ca1b4519a7d4464b">Impl</a>( std::string && <a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a>, std::string && <a class="code" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">details</a> )</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  : <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">_description</a>( <a class="code" href="namespacestd.html">std</a>::move(<a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a>) )</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  , <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011">_details</a>( <a class="code" href="namespacestd.html">std</a>::move(<a class="code" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">details</a>) )</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {}</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7"> 73</a></span>  std::string <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">_description</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011"> 74</a></span>  std::string <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011">_details</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab"> 75</a></span>  <a class="code" href="namespacezypp.html#af6f748c10ae9f94534b7bc7ac0c9ba2a">ProblemSolutionList</a> <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">_solutions</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">friend</span> <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a> * rwcowClone<Impl>( <span class="keyword">const</span> <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a> * rhs );</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structzypp_1_1ResolverProblem_1_1Impl.html#a96b1788edff87f87b16ac1bb34cf4d96"> 80</a></span>  <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a> * <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a96b1788edff87f87b16ac1bb34cf4d96">clone</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a8ad08889cf461d9c47e4f37b5e78f496">Impl</a>( *<span class="keyword">this</span> ); }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</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"><a class="line" href="classzypp_1_1ResolverProblem.html#a5b9f0c1bde75f727d1f1b9bf44fc5426"> 85</a></span>  <a class="code" href="classzypp_1_1ResolverProblem.html#a5b9f0c1bde75f727d1f1b9bf44fc5426">ResolverProblem::ResolverProblem</a>()</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  : _pimpl( new <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a>() )</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> </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#a1ceef479788cf508ffe06b02c2954ff2"> 89</a></span>  <a class="code" href="classzypp_1_1ResolverProblem.html#a5b9f0c1bde75f727d1f1b9bf44fc5426">ResolverProblem::ResolverProblem</a>( std::string description )</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  : _pimpl( new <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a>( <a class="code" href="namespacestd.html">std</a>::move(description) ) )</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {}</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#a78a07b09b7e3befa38d12704d1022f68"> 93</a></span>  <a class="code" href="classzypp_1_1ResolverProblem.html#a5b9f0c1bde75f727d1f1b9bf44fc5426">ResolverProblem::ResolverProblem</a>( std::string description, std::string details )</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  : _pimpl( new <a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html">Impl</a>( <a class="code" href="namespacestd.html">std</a>::move(description), <a class="code" href="namespacestd.html">std</a>::move(details) ) )</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {}</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#ad22d430deba8e0ba897a8ad59d75b96a"> 97</a></span>  <a class="code" href="classzypp_1_1ResolverProblem.html#ad22d430deba8e0ba897a8ad59d75b96a">ResolverProblem::~ResolverProblem</a>()</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {}</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8"> 101</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">ResolverProblem::description</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">_description</a>; }</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761"> 104</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">ResolverProblem::details</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011">_details</a>; }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#a87e3fae34e3985540490e6a296a198c3"> 107</a></span>  <span class="keyword">const</span> <a class="code" href="namespacezypp.html#af6f748c10ae9f94534b7bc7ac0c9ba2a">ProblemSolutionList</a> & <a class="code" href="classzypp_1_1ResolverProblem.html#a87e3fae34e3985540490e6a296a198c3">ResolverProblem::solutions</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">_solutions</a>; }</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> </div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#adc863a99a498cb9fd65483c6613817ff"> 111</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ResolverProblem.html#adc863a99a498cb9fd65483c6613817ff">ResolverProblem::setDescription</a>( std::string description )</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  { <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">_description</a> = std::move(<a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a>); }</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#a3e0f66fe142a7a33b19210eb5dfa9d34"> 114</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ResolverProblem.html#a3e0f66fe142a7a33b19210eb5dfa9d34">ResolverProblem::setDetails</a>( std::string details )</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  { <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011">_details</a> = std::move(<a class="code" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">details</a>); }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classzypp_1_1ResolverProblem.html#adf301d0ef407873f876db0da4c3e4a10"> 117</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ResolverProblem.html#adf301d0ef407873f876db0da4c3e4a10">ResolverProblem::addSolution</a>( ProblemSolution_Ptr solution, <span class="keywordtype">bool</span> inFront )</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">if</span> ( ! solutionInList( <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">_solutions</a>, solution ) ) <span class="comment">// bsc#985674: filter duplicate solutions</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (inFront)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  { <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">_solutions</a>.push_front( solution ); }</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  { <a class="code" href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">_pimpl</a>-><a class="code" href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">_solutions</a>.push_back( solution ); }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div><div class="line"><a name="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"><a class="line" href="namespacezypp.html#a4743f831856b249df9811b3c2426b811"> 129</a></span>  std::ostream & <a class="code" href="namespacezypp.html#a736823673697753a9826f368fefff5f0">operator<<</a>( std::ostream & os, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ResolverProblem.html">ResolverProblem</a> & obj )</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  os << <span class="stringliteral">"Problem:"</span> << endl;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  os << <span class="stringliteral">"=============================="</span> << endl;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  os << obj.<a class="code" href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">description</a>() << endl;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  os << obj.<a class="code" href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">details</a>() << endl;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  os << <span class="stringliteral">"------------------------------"</span> << endl;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  os << obj.<a class="code" href="classzypp_1_1ResolverProblem.html#a87e3fae34e3985540490e6a296a198c3">solutions</a>();</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  os << <span class="stringliteral">"=============================="</span> << endl;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> os;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="namespacezypp.html#aab8f9a672ea592f1ade52a936eb0b3c9"> 141</a></span>  std::ostream & <a class="code" href="namespacezypp.html#a736823673697753a9826f368fefff5f0">operator<<</a>( std::ostream & os, <span class="keyword">const</span> <a class="code" href="namespacezypp.html#a9df8818d25d13079c9af5dda11fd7072">ResolverProblemList</a> & obj )</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  { <span class="keywordflow">return</span> <a class="code" href="namespacezypp.html#aca13105e2531a707430f1204abcc0039">dumpRange</a>( os, obj.begin(), obj.end(), <span class="stringliteral">""</span>, <span class="stringliteral">""</span>, <span class="stringliteral">", "</span>, <span class="stringliteral">""</span>, <span class="stringliteral">""</span> ); }</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> } <span class="comment">// namespace zypp</span></div><div class="ttc" id="namespacezypp_html_af6f748c10ae9f94534b7bc7ac0c9ba2a"><div class="ttname"><a href="namespacezypp.html#af6f748c10ae9f94534b7bc7ac0c9ba2a">zypp::ProblemSolutionList</a></div><div class="ttdeci">std::list< ProblemSolution_Ptr > ProblemSolutionList</div><div class="ttdef"><b>Definition:</b> <a href="ProblemTypes_8h_source.html#l00043">ProblemTypes.h:43</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_adf301d0ef407873f876db0da4c3e4a10"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#adf301d0ef407873f876db0da4c3e4a10">zypp::ResolverProblem::addSolution</a></div><div class="ttdeci">void addSolution(ProblemSolution_Ptr solution, bool inFront=false)</div><div class="ttdoc">Add a solution to this problem.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00117">ResolverProblem.cc:117</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_ad22d430deba8e0ba897a8ad59d75b96a"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#ad22d430deba8e0ba897a8ad59d75b96a">zypp::ResolverProblem::~ResolverProblem</a></div><div class="ttdeci">~ResolverProblem()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00097">ResolverProblem.cc:97</a></div></div> <div class="ttc" id="ProblemSolution_8h_html"><div class="ttname"><a href="ProblemSolution_8h.html">ProblemSolution.h</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_a87e3fae34e3985540490e6a296a198c3"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#a87e3fae34e3985540490e6a296a198c3">zypp::ResolverProblem::solutions</a></div><div class="ttdeci">const ProblemSolutionList & solutions() const</div><div class="ttdoc">Return the possible solutions to this problem.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00107">ResolverProblem.cc:107</a></div></div> <div class="ttc" id="ResolverProblem_8h_html"><div class="ttname"><a href="ResolverProblem_8h.html">ResolverProblem.h</a></div></div> <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> <a href="Arch_8h_source.html#l00344">Arch.h:344</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_af70c7a6b6630cb43ca1b4519a7d4464b"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#af70c7a6b6630cb43ca1b4519a7d4464b">zypp::ResolverProblem::Impl::Impl</a></div><div class="ttdeci">Impl(std::string &&description, std::string &&details)</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00068">ResolverProblem.cc:68</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_a6f729dd0cb83526741af026956e96011"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#a6f729dd0cb83526741af026956e96011">zypp::ResolverProblem::Impl::_details</a></div><div class="ttdeci">std::string _details</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00074">ResolverProblem.cc:74</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html">zypp::ResolverProblem::Impl</a></div><div class="ttdoc">ResolverProblem implementation.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00059">ResolverProblem.cc:59</a></div></div> <div class="ttc" id="namespacezypp_html_a9df8818d25d13079c9af5dda11fd7072"><div class="ttname"><a href="namespacezypp.html#a9df8818d25d13079c9af5dda11fd7072">zypp::ResolverProblemList</a></div><div class="ttdeci">std::list< ResolverProblem_Ptr > ResolverProblemList</div><div class="ttdef"><b>Definition:</b> <a href="ProblemTypes_8h_source.html#l00046">ProblemTypes.h:46</a></div></div> <div class="ttc" id="namespacezypp_html_aca13105e2531a707430f1204abcc0039"><div class="ttname"><a href="namespacezypp.html#aca13105e2531a707430f1204abcc0039">zypp::dumpRange</a></div><div class="ttdeci">std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")</div><div class="ttdoc">Print range defined by iterators (multiline style).</div><div class="ttdef"><b>Definition:</b> <a href="LogTools_8h_source.html#l00091">LogTools.h:91</a></div></div> <div class="ttc" id="namespacezypp_html_a736823673697753a9826f368fefff5f0"><div class="ttname"><a href="namespacezypp.html#a736823673697753a9826f368fefff5f0">zypp::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &str, const Exception &obj)</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8cc_source.html#l00147">Exception.cc:147</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_a3e0f66fe142a7a33b19210eb5dfa9d34"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#a3e0f66fe142a7a33b19210eb5dfa9d34">zypp::ResolverProblem::setDetails</a></div><div class="ttdeci">void setDetails(std::string details)</div><div class="ttdoc">Set detail description of the problem.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00114">ResolverProblem.cc:114</a></div></div> <div class="ttc" id="namespacezypp_html_afdd1ae180b46ec5116b6e99ad61f3d2f"><div class="ttname"><a href="namespacezypp.html#afdd1ae180b46ec5116b6e99ad61f3d2f">zypp::IMPL_PTR_TYPE</a></div><div class="ttdeci">IMPL_PTR_TYPE(Application)</div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_a96b1788edff87f87b16ac1bb34cf4d96"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#a96b1788edff87f87b16ac1bb34cf4d96">zypp::ResolverProblem::Impl::clone</a></div><div class="ttdeci">Impl * clone() const</div><div class="ttdoc">clone for RWCOW_pointer</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00080">ResolverProblem.cc:80</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_ad8d82bee549990e7dfd4926ed0981761"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#ad8d82bee549990e7dfd4926ed0981761">zypp::ResolverProblem::details</a></div><div class="ttdeci">const std::string & details() const</div><div class="ttdoc">Return a (possibly muti-line) detailed description of the problem or an empty string if there are no ...</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00104">ResolverProblem.cc:104</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_ad1c723cb0dff7c6e7df6c61f616991e7"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#ad1c723cb0dff7c6e7df6c61f616991e7">zypp::ResolverProblem::Impl::_description</a></div><div class="ttdeci">std::string _description</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00073">ResolverProblem.cc:73</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_a817bb1af6d9d46772a4d4f78e25758bb"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#a817bb1af6d9d46772a4d4f78e25758bb">zypp::ResolverProblem::_pimpl</a></div><div class="ttdeci">RWCOW_pointer< Impl > _pimpl</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8h_source.html#l00084">ResolverProblem.h:84</a></div></div> <div class="ttc" id="LogTools_8h_html"><div class="ttname"><a href="LogTools_8h.html">LogTools.h</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_ae6ec13b65d2a56cc68c5ca9cbcbebaab"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#ae6ec13b65d2a56cc68c5ca9cbcbebaab">zypp::ResolverProblem::Impl::_solutions</a></div><div class="ttdeci">ProblemSolutionList _solutions</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00075">ResolverProblem.cc:75</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_aa244993a3bef4880b7881e7b6f149cce"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#aa244993a3bef4880b7881e7b6f149cce">zypp::ResolverProblem::Impl::Impl</a></div><div class="ttdeci">Impl(std::string &&description)</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00064">ResolverProblem.cc:64</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html">zypp::ResolverProblem</a></div><div class="ttdoc">Describe a solver problem and offer solutions.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8h_source.html#l00025">ResolverProblem.h:25</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="classzypp_1_1ResolverProblem_html_a5b9f0c1bde75f727d1f1b9bf44fc5426"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#a5b9f0c1bde75f727d1f1b9bf44fc5426">zypp::ResolverProblem::ResolverProblem</a></div><div class="ttdeci">ResolverProblem()</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00085">ResolverProblem.cc:85</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_a42d80d198dcb64b6fa68ccde294d53f8"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#a42d80d198dcb64b6fa68ccde294d53f8">zypp::ResolverProblem::description</a></div><div class="ttdeci">const std::string & description() const</div><div class="ttdoc">Return a one-line description of the problem.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00101">ResolverProblem.cc:101</a></div></div> <div class="ttc" id="structzypp_1_1ResolverProblem_1_1Impl_html_a8ad08889cf461d9c47e4f37b5e78f496"><div class="ttname"><a href="structzypp_1_1ResolverProblem_1_1Impl.html#a8ad08889cf461d9c47e4f37b5e78f496">zypp::ResolverProblem::Impl::Impl</a></div><div class="ttdeci">Impl()</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00061">ResolverProblem.cc:61</a></div></div> <div class="ttc" id="classzypp_1_1ResolverProblem_html_adc863a99a498cb9fd65483c6613817ff"><div class="ttname"><a href="classzypp_1_1ResolverProblem.html#adc863a99a498cb9fd65483c6613817ff">zypp::ResolverProblem::setDescription</a></div><div class="ttdeci">void setDescription(std::string description)</div><div class="ttdoc">Set description of the problem.</div><div class="ttdef"><b>Definition:</b> <a href="ResolverProblem_8cc_source.html#l00111">ResolverProblem.cc:111</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="ResolverProblem_8cc.html">ResolverProblem.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>