18 #ifndef CUPT_COMMON_RESOLVER_SEEN
19 #define CUPT_COMMON_RESOLVER_SEEN
31 using namespace cache;
45 Resolver& operator=(
const Resolver&);
54 virtual string toString()
const = 0;
63 virtual string toString()
const;
74 virtual string toString()
const;
90 virtual string toString()
const;
105 virtual string toString()
const;
115 bool automaticallyInstalledFlag;
124 vector< shared_ptr< const Reason > > unresolvedProblems;
143 typedef uint32_t Value;
145 static const Value Must;
146 static const Value Try;
147 static const Value Wish;
152 operator Value()
const
170 void installVersion(
const vector< const BinaryVersion* >&,
171 const string& annotation =
string(), RequestImportance importance = RequestImportance::Must);
178 void removeVersions(
const vector< const BinaryVersion* >&,
179 const string& annotation =
string(), RequestImportance importance = RequestImportance::Must);
196 bool invert =
false,
const string& annotation =
string(), RequestImportance importance = RequestImportance::Must,
197 bool asAutomatic =
false) = 0;
201 virtual void upgrade() = 0;
207 virtual void setAutomaticallyInstalledFlag(
const string& packageName,
bool flagValue) = 0;
216 virtual bool resolve(CallbackType) = 0;
Type
Definition: resolver.hpp:130
map< string, SuggestedPackage > SuggestedPackages
Definition: resolver.hpp:119
reason: auto-removal
Definition: resolver.hpp:72
BinaryVersion::RelationTypes::Type dependencyType
type of dependency that caused the change
Definition: resolver.hpp:84
Definition: resolver.hpp:141
Definition: binarypackage.hpp:26
Type
type
Definition: binaryversion.hpp:37
finish computations and return true
Definition: resolver.hpp:132
std::function< UserAnswer::Type(const Offer &) > CallbackType
callback function type
Definition: resolver.hpp:139
reason: asked by user
Definition: resolver.hpp:61
vector< shared_ptr< const Reason > > reasons
list of resolver reasons if tracked
Definition: resolver.hpp:116
base class for resolver decision reasons
Definition: resolver.hpp:48
RelationExpression relationExpression
relation expression which caused the change
Definition: resolver.hpp:85
const BinaryVersion * version
package version
Definition: resolver.hpp:114
throw out the proposed solution and work on other ones
Definition: resolver.hpp:133
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:100
reason: other version's dependency
Definition: resolver.hpp:81
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:83
the result of resolver's work
Definition: resolver.hpp:121
binary version info
Definition: binaryversion.hpp:31
user callback answer variants
Definition: resolver.hpp:128
SuggestedPackages suggestedPackages
target system package set
Definition: resolver.hpp:123
dependency problems resolver
Definition: resolver.hpp:42
virtual ~Resolver()
destructor
Definition: resolver.hpp:219
group of alternative relations
Definition: relation.hpp:102
string relatedPackageName
name of related binary package
Definition: resolver.hpp:101
reason: source-synchronized with a related binary package
Definition: resolver.hpp:98
vector< string > reasonPackageNames
changes in these packages caused the change in this package
Definition: resolver.hpp:117
resolver's main solution item
Definition: resolver.hpp:112