summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cacheset.cc (renamed from apt-pkg/packageset.cc)6
-rw-r--r--apt-pkg/cacheset.h (renamed from apt-pkg/packageset.h)18
-rw-r--r--apt-pkg/makefile4
3 files changed, 16 insertions, 12 deletions
diff --git a/apt-pkg/packageset.cc b/apt-pkg/cacheset.cc
index f296b7c45..b49b36539 100644
--- a/apt-pkg/packageset.cc
+++ b/apt-pkg/cacheset.cc
@@ -3,15 +3,15 @@
/* ######################################################################
Simple wrapper around a std::set to provide a similar interface to
- a set of packages as to the complete set of all packages in the
- pkgCache.
+ a set of cache structures as to the complete set of all structures
+ in the pkgCache. Currently only Package is supported.
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/error.h>
-#include <apt-pkg/packageset.h>
+#include <apt-pkg/cacheset.h>
#include <apt-pkg/strutl.h>
#include <apti18n.h>
diff --git a/apt-pkg/packageset.h b/apt-pkg/cacheset.h
index 9f80d60ed..7c05face6 100644
--- a/apt-pkg/packageset.h
+++ b/apt-pkg/cacheset.h
@@ -1,14 +1,13 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-/** \class APT::PackageSet
+/** \file cacheset.h
+ Wrappers around std::set to have set::iterators which behave
+ similar to the Iterators of the cache structures.
- Simple wrapper around a std::set to provide a similar interface to
- a set of packages as to the complete set of all packages in the
- pkgCache.
-*/
+ Provides also a few helper methods which work with these sets */
/*}}}*/
-#ifndef APT_PACKAGESET_H
-#define APT_PACKAGESET_H
+#ifndef APT_CACHESET_H
+#define APT_CACHESET_H
// Include Files /*{{{*/
#include <iostream>
#include <fstream>
@@ -18,6 +17,11 @@
#include <apt-pkg/pkgcache.h>
/*}}}*/
namespace APT {
+/** \class APT::PackageSet
+
+ Simple wrapper around a std::set to provide a similar interface to
+ a set of packages as to the complete set of all packages in the
+ pkgCache. */
class PackageSet : public std::set<pkgCache::PkgIterator> { /*{{{*/
public: /*{{{*/
/** \brief smell like a pkgCache::PkgIterator */
diff --git a/apt-pkg/makefile b/apt-pkg/makefile
index 968275c5c..1a7078693 100644
--- a/apt-pkg/makefile
+++ b/apt-pkg/makefile
@@ -35,7 +35,7 @@ SOURCE+= pkgcache.cc version.cc depcache.cc \
srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc \
indexrecords.cc vendor.cc vendorlist.cc cdrom.cc indexcopy.cc \
- aptconfiguration.cc packageset.cc
+ aptconfiguration.cc cacheset.cc
HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
orderlist.h sourcelist.h packagemanager.h tagfile.h \
init.h pkgcache.h version.h progress.h pkgrecords.h \
@@ -43,7 +43,7 @@ HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
pkgsystem.h indexfile.h metaindex.h indexrecords.h vendor.h \
vendorlist.h cdrom.h indexcopy.h aptconfiguration.h \
- packageset.h
+ cacheset.h
# Source code for the debian specific components
# In theory the deb headers do not need to be exported..