]>
git.saurik.com Git - apt.git/blob - apt-pkg/cachefilter.h
1 // -*- mode: cpp; mode: fold -*-
3 /** \file cachefilter.h
4 Collection of functor classes */
6 #ifndef APT_CACHEFILTER_H
7 #define APT_CACHEFILTER_H
8 // Include Files /*{{{*/
9 #include <apt-pkg/pkgcache.h>
16 namespace CacheFilter
{
17 // PackageNameMatchesRegEx /*{{{*/
18 class PackageNameMatchesRegEx
{
19 /** \brief dpointer placeholder (for later in case we need it) */
23 PackageNameMatchesRegEx(std::string
const &Pattern
);
24 bool operator() (pkgCache::PkgIterator
const &Pkg
);
25 bool operator() (pkgCache::GrpIterator
const &Grp
);
26 ~PackageNameMatchesRegEx();