prettyprinters.h
#ifndef APT_PRETTYPRINTERS_H
#define APT_PRETTYPRINTERS_H
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
class pkgDepCache;
namespace APT {
struct PrettyPkg
{
pkgDepCache * const DepCache;
pkgCache::PkgIterator const Pkg;
PrettyPkg(pkgDepCache * const depcache, pkgCache::PkgIterator const &pkg) APT_NONNULL(2) : DepCache(depcache), Pkg(pkg) {}
};
struct PrettyDep
{
pkgDepCache * const DepCache;
pkgCache::DepIterator const Dep;
PrettyDep(pkgDepCache * const depcache, pkgCache::DepIterator const &dep) APT_NONNULL(2) : DepCache(depcache), Dep(dep) {}
};
}
APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyPkg& pp);
APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyDep& pd);
#endif
pkgCache::DepIterator
Definition cacheiterators.h:337
pkgCache::PkgIterator
Definition cacheiterators.h:147
pkgDepCache
Definition depcache.h:63
pkgcache.h
pkgCache - Structure definitions for the cache file
APT::PrettyDep
Definition prettyprinters.h:27
APT::PrettyPkg
Definition prettyprinters.h:16