apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

apt-cache.cc File Reference
#include <config.h>
#include <apt-pkg/algorithms.h>
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cacheset.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/depcache.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/indexfile.h>
#include <apt-pkg/init.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/metaindex.h>
#include <apt-pkg/mmap.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/pkgsystem.h>
#include <apt-pkg/policy.h>
#include <apt-pkg/progress.h>
#include <apt-pkg/sourcelist.h>
#include <apt-pkg/srcrecords.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/tagfile.h>
#include <apt-pkg/version.h>
#include <apt-private/private-cacheset.h>
#include <apt-private/private-cmndline.h>
#include <apt-private/private-depends.h>
#include <apt-private/private-main.h>
#include <apt-private/private-search.h>
#include <apt-private/private-show.h>
#include <apt-private/private-unmet.h>
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <vector>
#include <regex.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <apti18n.h>
Include dependency graph for apt-cache.cc:

Go to the source code of this file.

Macros

#define APT_CACHESIZE(X, Y)   (Cache->Head().X * Cache->Head().Y)
 

Functions

static bool DumpPackage (CommandLine &CmdL)
 
static map_pointer< pkgCache::PackagePackageNext (pkgCache::Package const *const P)
 
static map_pointer< pkgCache::GroupGroupNext (pkgCache::Group const *const G)
 
template<class T >
static void ShowHashTableStats (char const *const Type, T *StartP, map_pointer< T > *Hashtable, unsigned long Size, map_pointer< T >(*Next)(T const *const))
 
static bool Stats (CommandLine &CmdL)
 
static bool Dump (CommandLine &)
 
static bool DumpAvail (CommandLine &)
 
static bool XVcg (CommandLine &CmdL)
 
static bool Dotty (CommandLine &CmdL)
 
static bool ShowAuto (CommandLine &)
 
static bool ShowPkgNames (CommandLine &CmdL)
 
static bool Madison (CommandLine &CmdL)
 
static bool GenCaches (CommandLine &)
 
static bool ShowHelp (CommandLine &)
 
static std::vector< aptDispatchWithHelpGetCommands ()
 
int main (int argc, const char *argv[])
 

Macro Definition Documentation

◆ APT_CACHESIZE

#define APT_CACHESIZE (   X,
 
)    (Cache->Head().X * Cache->Head().Y)

Function Documentation

◆ Dotty()

◆ Dump()

◆ DumpAvail()

◆ DumpPackage()

◆ GenCaches()

static bool GenCaches ( CommandLine )
static

Definition at line 1085 of file apt-cache.cc.

References _config, and CacheFile::BuildCaches().

Referenced by GetCommands().

◆ GetCommands()

◆ GroupNext()

static map_pointer<pkgCache::Group> GroupNext ( pkgCache::Group const *const  G)
static

Definition at line 138 of file apt-cache.cc.

References pkgCache< Str, Itr >::Group::Next.

Referenced by Stats().

◆ Madison()

◆ main()

int main ( int  argc,
const char *  argv[] 
)

◆ PackageNext()

static map_pointer<pkgCache::Package> PackageNext ( pkgCache::Package const *const  P)
static

Definition at line 137 of file apt-cache.cc.

References pkgCache< Str, Itr >::Package::NextPackage.

Referenced by Stats().

◆ ShowAuto()

static bool ShowAuto ( CommandLine )
static

◆ ShowHashTableStats()

static void ShowHashTableStats ( char const *const  Type,
T *  StartP,
map_pointer< T > *  Hashtable,
unsigned long  Size,
map_pointer< T >(*)(T const *const)  Next 
)
static

Definition at line 140 of file apt-cache.cc.

◆ ShowHelp()

static bool ShowHelp ( CommandLine )
static

Definition at line 1093 of file apt-cache.cc.

Referenced by main(), and ShowCommonHelp().

◆ ShowPkgNames()

static bool ShowPkgNames ( CommandLine CmdL)
static

◆ Stats()

◆ XVcg()