Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CheckSetDeps Class Reference

check whether requirements in a PkgSet are fulfilled More...

#include <CheckSetDeps.h>

List of all members.

Public Types

typedef std::map< PMSolvablePtr,
PMSolvable::PkgRelList_type
BrokenMap

Public Member Functions

 CheckSetDeps (PkgSet &c, BrokenMap &b)
 Constructor.
void setTrackPackages (bool y)
 set whether to track broken packages at all
void setTrackRelations (bool y)
 set whether to track broken relations at all
bool operator() (PMSolvablePtr p)
 check package dependencies
bool checkAll ()
 check all packages in the set

Private Attributes

PkgSet_c
BrokenMap_b
bool _track_packages
bool _track_relations
void * dummy1
void * dummy2


Detailed Description

check whether requirements in a PkgSet are fulfilled

Can be used as a functor


Member Typedef Documentation

typedef std::map<PMSolvablePtr, PMSolvable::PkgRelList_type> CheckSetDeps::BrokenMap
 

foo => ( libbar.so.1, baz-devel = 4.2 )


Constructor & Destructor Documentation

CheckSetDeps::CheckSetDeps PkgSet c,
BrokenMap b
 

Constructor.

Parameters:
c the set to check
b location where to store broken deps


Member Function Documentation

bool CheckSetDeps::checkAll  ) 
 

check all packages in the set

Returns:
true if all dependencies are satisfied, false otherwise

bool CheckSetDeps::operator() PMSolvablePtr  p  ) 
 

check package dependencies

checks the requires of one package against the provides of the set. Tracks broken dependencies in the map specified at construction time

Parameters:
p the package to check
Returns:
true if all dependencies are satisfied, false otherwise

void CheckSetDeps::setTrackPackages bool  y  ) 
 

set whether to track broken packages at all

void CheckSetDeps::setTrackRelations bool  y  ) 
 

set whether to track broken relations at all


Member Data Documentation

BrokenMap& CheckSetDeps::_b [private]
 

PkgSet& CheckSetDeps::_c [private]
 

bool CheckSetDeps::_track_packages [private]
 

bool CheckSetDeps::_track_relations [private]
 

void* CheckSetDeps::dummy1 [private]
 

void* CheckSetDeps::dummy2 [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 12 21:52:13 2005 for yast2-packagemanager by  doxygen 1.4.4