<!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>apt: apt-pkg/prettyprinters.h 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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">apt  <span id="projectnumber">1.4.6</span> </div> <div id="projectbrief">commandline package manager</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 id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_18f22d4be2ca84c350e120b6506056ca.xhtml">apt-pkg</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">prettyprinters.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef APT_PRETTYPRINTERS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define APT_PRETTYPRINTERS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <<a class="code" href="pkgcache_8h.xhtml">apt-pkg/pkgcache.h</a>></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <apt-pkg/macros.h></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keyword">class </span><a class="code" href="classpkgDepCache.xhtml">pkgDepCache</a>;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">namespace </span>APT {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="structAPT_1_1PrettyPkg.xhtml"> 15</a></span> <span class="keyword">struct </span><a class="code" href="structAPT_1_1PrettyPkg.xhtml">PrettyPkg</a></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>  <a class="code" href="classpkgDepCache.xhtml">pkgDepCache</a> * <span class="keyword">const</span> DepCache;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="classpkgCache_1_1PkgIterator.xhtml">pkgCache::PkgIterator</a> <span class="keyword">const</span> Pkg;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <a class="code" href="structAPT_1_1PrettyPkg.xhtml">PrettyPkg</a>(<a class="code" href="classpkgDepCache.xhtml">pkgDepCache</a> * <span class="keyword">const</span> depcache, <a class="code" href="classpkgCache_1_1PkgIterator.xhtml">pkgCache::PkgIterator</a> <span class="keyword">const</span> &pkg) APT_NONNULL(2) : DepCache(depcache), Pkg(pkg) {}</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> };</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structAPT_1_1PrettyDep.xhtml"> 26</a></span> <span class="keyword">struct </span><a class="code" href="structAPT_1_1PrettyDep.xhtml">PrettyDep</a></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>  <a class="code" href="classpkgDepCache.xhtml">pkgDepCache</a> * <span class="keyword">const</span> DepCache;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classpkgCache_1_1DepIterator.xhtml">pkgCache::DepIterator</a> <span class="keyword">const</span> Dep;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="structAPT_1_1PrettyDep.xhtml">PrettyDep</a>(<a class="code" href="classpkgDepCache.xhtml">pkgDepCache</a> * <span class="keyword">const</span> depcache, <a class="code" href="classpkgCache_1_1DepIterator.xhtml">pkgCache::DepIterator</a> <span class="keyword">const</span> &dep) APT_NONNULL(2) : DepCache(depcache), Dep(dep) {}</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> </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> std::ostream& operator<<(std::ostream& os, <span class="keyword">const</span> <a class="code" href="structAPT_1_1PrettyPkg.xhtml">APT::PrettyPkg</a>& pp);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> std::ostream& operator<<(std::ostream& os, <span class="keyword">const</span> <a class="code" href="structAPT_1_1PrettyDep.xhtml">APT::PrettyDep</a>& pd);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="classpkgCache_1_1DepIterator_xhtml"><div class="ttname"><a href="classpkgCache_1_1DepIterator.xhtml">pkgCache::DepIterator</a></div><div class="ttdef"><b>Definition:</b> cacheiterators.h:277</div></div> <div class="ttc" id="classpkgDepCache_xhtml"><div class="ttname"><a href="classpkgDepCache.xhtml">pkgDepCache</a></div><div class="ttdef"><b>Definition:</b> depcache.h:64</div></div> <div class="ttc" id="structAPT_1_1PrettyPkg_xhtml"><div class="ttname"><a href="structAPT_1_1PrettyPkg.xhtml">APT::PrettyPkg</a></div><div class="ttdef"><b>Definition:</b> prettyprinters.h:15</div></div> <div class="ttc" id="structAPT_1_1PrettyDep_xhtml"><div class="ttname"><a href="structAPT_1_1PrettyDep.xhtml">APT::PrettyDep</a></div><div class="ttdef"><b>Definition:</b> prettyprinters.h:26</div></div> <div class="ttc" id="pkgcache_8h_xhtml"><div class="ttname"><a href="pkgcache_8h.xhtml">pkgcache.h</a></div><div class="ttdoc">pkgCache - Structure definitions for the cache file</div></div> <div class="ttc" id="classpkgCache_1_1PkgIterator_xhtml"><div class="ttname"><a href="classpkgCache_1_1PkgIterator.xhtml">pkgCache::PkgIterator</a></div><div class="ttdef"><b>Definition:</b> cacheiterators.h:144</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.15 </small></address> </body> </html>