libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
APT::CacheFilter::PackageArchitectureMatchesSpecification Class Reference

matching against architecture specification strings More...

#include <cachefilter.h>

Collaboration diagram for APT::CacheFilter::PackageArchitectureMatchesSpecification:

Public Member Functions

 PackageArchitectureMatchesSpecification (std::string const &pattern, bool const isPattern=true)
 matching against architecture specification strings More...
 
 ~PackageArchitectureMatchesSpecification ()
 
bool operator() (char const *const &arch)
 
bool operator() (pkgCache::PkgIterator const &Pkg)
 
bool operator() (pkgCache::VerIterator const &Ver)
 

Private Attributes

std::string complete
 
void * d
 dpointer placeholder (for later in case we need it) More...
 
bool isPattern
 
std::string literal
 

Detailed Description

matching against architecture specification strings

The strings are of the format <kernel>-<cpu> where either component, or the whole string, can be the wildcard "any" as defined in debian-policy ยง11.1 "Architecture specification strings".

Examples: i386, mipsel, linux-any, any-amd64, any

Constructor & Destructor Documentation

APT::CacheFilter::PackageArchitectureMatchesSpecification::PackageArchitectureMatchesSpecification ( std::string const &  pattern,
bool const  isPattern = true 
)

matching against architecture specification strings

Parameters
patternis the architecture specification string
isPatterndefines if the given pattern is a architecture specification pattern to match others against or if it is the fixed string and matched against patterns
APT::CacheFilter::PackageArchitectureMatchesSpecification::~PackageArchitectureMatchesSpecification ( )

Member Function Documentation

bool APT::CacheFilter::PackageArchitectureMatchesSpecification::operator() ( char const *const &  arch)
bool APT::CacheFilter::PackageArchitectureMatchesSpecification::operator() ( pkgCache::PkgIterator const &  Pkg)
bool APT::CacheFilter::PackageArchitectureMatchesSpecification::operator() ( pkgCache::VerIterator const &  Ver)

Member Data Documentation

std::string APT::CacheFilter::PackageArchitectureMatchesSpecification::complete
private
void* APT::CacheFilter::PackageArchitectureMatchesSpecification::d
private

dpointer placeholder (for later in case we need it)

bool APT::CacheFilter::PackageArchitectureMatchesSpecification::isPattern
private
std::string APT::CacheFilter::PackageArchitectureMatchesSpecification::literal
private

The documentation for this class was generated from the following file: