<!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: pkgDepCache::ActionGroup Class 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 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="classpkgDepCache.xhtml">pkgDepCache</a></li><li class="navelem"><a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml">ActionGroup</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classpkgDepCache_1_1ActionGroup-members.xhtml">List of all members</a> </div> <div class="headertitle"> <div class="title">pkgDepCache::ActionGroup Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Represents an active action group. <a href="classpkgDepCache_1_1ActionGroup.xhtml#details">More...</a></p> <p><code>#include <<a class="el" href="depcache_8h_source.xhtml">apt-pkg/depcache.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a6037ac47c9316a4d9c07b5f30f915191"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml#a6037ac47c9316a4d9c07b5f30f915191">ActionGroup</a> (<a class="el" href="classpkgDepCache.xhtml">pkgDepCache</a> &cache)</td></tr> <tr class="memdesc:a6037ac47c9316a4d9c07b5f30f915191"><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml" title="Represents an active action group.">ActionGroup</a>. <a href="#a6037ac47c9316a4d9c07b5f30f915191">More...</a><br /></td></tr> <tr class="separator:a6037ac47c9316a4d9c07b5f30f915191"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a23b477d0e2d399f75d585d154c346591"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml#a23b477d0e2d399f75d585d154c346591">release</a> ()</td></tr> <tr class="memdesc:a23b477d0e2d399f75d585d154c346591"><td class="mdescLeft"> </td><td class="mdescRight">Clean up the action group before it is destroyed. <a href="#a23b477d0e2d399f75d585d154c346591">More...</a><br /></td></tr> <tr class="separator:a23b477d0e2d399f75d585d154c346591"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae23e9160a48c2bc17b7d1abffd745deb"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml#ae23e9160a48c2bc17b7d1abffd745deb">~ActionGroup</a> ()</td></tr> <tr class="memdesc:ae23e9160a48c2bc17b7d1abffd745deb"><td class="mdescLeft"> </td><td class="mdescRight">Destroy the action group. <a href="#ae23e9160a48c2bc17b7d1abffd745deb">More...</a><br /></td></tr> <tr class="separator:ae23e9160a48c2bc17b7d1abffd745deb"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Represents an active action group. </p> <p>An action group is a group of actions that are currently being performed. While an active group is active, certain routine clean-up actions that would normally be performed after every cache operation are delayed until the action group is completed. This is necessary primarily to avoid inefficiencies when modifying a large number of packages at once.</p> <p>This class represents an active action group. Creating an instance will create an action group; destroying one will destroy the corresponding action group.</p> <p>The following operations are suppressed by this class:</p> <ul> <li>Keeping the Marked and Garbage flags up to date.</li> </ul> <dl class="section note"><dt>Note</dt><dd>This can be used in the future to easily accumulate atomic actions for undo or to display "what apt did anyway"; e.g., change the counter of how many action groups are active to a std::set of pointers to them and use those to store information about what happened in a group in the group. </dd></dl> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a6037ac47c9316a4d9c07b5f30f915191"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6037ac47c9316a4d9c07b5f30f915191">◆ </a></span>ActionGroup()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml">ActionGroup</a> </td> <td>(</td> <td class="paramtype"><a class="el" href="classpkgDepCache.xhtml">pkgDepCache</a> & </td> <td class="paramname"><em>cache</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Create a new <a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml" title="Represents an active action group.">ActionGroup</a>. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">cache</td><td>The cache that this <a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml" title="Represents an active action group.">ActionGroup</a> should manipulate.</td></tr> </table> </dd> </dl> <p>As long as this object exists, no automatic cleanup operations will be undertaken. </p> </div> </div> <a id="ae23e9160a48c2bc17b7d1abffd745deb"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae23e9160a48c2bc17b7d1abffd745deb">◆ </a></span>~ActionGroup()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">~<a class="el" href="classpkgDepCache_1_1ActionGroup.xhtml">ActionGroup</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destroy the action group. </p> <p>If this is the last action group, the automatic cache cleanup operations will be undertaken. </p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a23b477d0e2d399f75d585d154c346591"></a> <h2 class="memtitle"><span class="permalink"><a href="#a23b477d0e2d399f75d585d154c346591">◆ </a></span>release()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void release </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Clean up the action group before it is destroyed. </p> <p>If it is destroyed later, no second cleanup wil be run. </p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>apt-pkg/<a class="el" href="depcache_8h_source.xhtml">depcache.h</a></li> <li>apt-pkg/depcache.cc</li> </ul> </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>