Cupt
|
library's problem resolver implementation More...
#include <cupt/system/resolvers/native.hpp>
Public Member Functions | |
NativeResolver (const shared_ptr< const Config > &, const shared_ptr< const Cache > &) | |
constructor | |
void | satisfyRelationExpression (const RelationExpression &, bool, const string &, RequestImportance, bool) |
void | upgrade () |
void | setAutomaticallyInstalledFlag (const string &, bool) |
bool | resolve (Resolver::CallbackType) |
perform a resolve computations More... | |
![]() | |
void | installVersion (const vector< const BinaryVersion * > &, const string &annotation=string(), RequestImportance importance=RequestImportance::Must) |
void | removeVersions (const vector< const BinaryVersion * > &, const string &annotation=string(), RequestImportance importance=RequestImportance::Must) |
virtual | ~Resolver () |
destructor | |
Additional Inherited Members | |
![]() | |
typedef map< string, SuggestedPackage > | SuggestedPackages |
typedef std::function< UserAnswer::Type(const Offer &) > | CallbackType |
callback function type | |
library's problem resolver implementation
|
virtual |
perform a resolve computations
Takes all requested data and tries to find the best valid set of packages which conforms to what was requested.
true
if the solution was found and accepted by user, false
otherwise Implements cupt::system::Resolver.
|
virtual |
Requests that specified relation expression is satisfied.
invert | if set to true , unsatisfies the expression rather than satisfy it |
annotation | user-friendly description of request; if empty, standard one will be generated |
importance | specifies is the request mandatory, and if not, what is the penalty:
|
asAutomatic | if new packages are to be installed as a result of perfoming this request, their 'automaticallyInstalledFlag' will have the value of this parameter. |
Implements cupt::system::Resolver.
|
virtual |
Requests that if a solution will have the package packageName, its corresponding Offer::SuggestedPackage::automaticallyInstalledFlag will have the value of flagValue.
Implements cupt::system::Resolver.
|
virtual |
Requests an upgrade of all installed packages (to their preferred version).
Implements cupt::system::Resolver.