Go to the documentation of this file.
18 #ifndef CUPT_COMMON_RESOLVER_SEEN
19 #define CUPT_COMMON_RESOLVER_SEEN
31 using namespace cache;
54 virtual string toString()
const = 0;
63 virtual string toString()
const;
73 virtual string toString()
const override;
84 virtual string toString()
const;
100 virtual string toString()
const;
115 virtual string toString()
const;
125 bool automaticallyInstalledFlag;
134 vector< shared_ptr< const Reason > > unresolvedProblems;
153 typedef uint32_t Value;
155 static const Value Must;
156 static const Value Try;
157 static const Value Wish;
162 operator Value()
const
180 void installVersion(
const vector< const BinaryVersion* >&,
181 const string& annotation =
string(), RequestImportance importance = RequestImportance::Must);
188 void removeVersions(
const vector< const BinaryVersion* >&,
189 const string& annotation =
string(), RequestImportance importance = RequestImportance::Must);
206 bool invert =
false,
const string& annotation =
string(), RequestImportance importance = RequestImportance::Must,
207 bool asAutomatic =
false) = 0;
211 virtual void upgrade() = 0;
217 virtual void setAutomaticallyInstalledFlag(
const string& packageName,
bool flagValue) = 0;
226 virtual bool resolve(CallbackType) = 0;
Definition: resolver.hpp:151
virtual ~Resolver()
destructor
Definition: resolver.hpp:229
std::function< UserAnswer::Type(const Offer &) > CallbackType
callback function type
Definition: resolver.hpp:149
vector< string > reasonPackageNames
changes in these packages caused the change in this package
Definition: resolver.hpp:127
map< string, SuggestedPackage > SuggestedPackages
Definition: resolver.hpp:129
dependency problems resolver
Definition: resolver.hpp:42
BinaryVersion::RelationTypes::Type dependencyType
type of dependency that caused the change
Definition: resolver.hpp:94
base class for resolver decision reasons
Definition: resolver.hpp:48
reason: implicitly changed by resolver
Definition: resolver.hpp:71
resolver's main solution item
Definition: resolver.hpp:122
reason: asked by user
Definition: resolver.hpp:61
user callback answer variants
Definition: resolver.hpp:138
vector< shared_ptr< const Reason > > reasons
list of resolver reasons if tracked
Definition: resolver.hpp:126
reason: source-synchronized with a related binary package
Definition: resolver.hpp:108
reason: auto-removal
Definition: resolver.hpp:82
const BinaryVersion * version
package version
Definition: resolver.hpp:124
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:110
binary version info
Definition: binaryversion.hpp:31
@ Decline
throw out the proposed solution and work on other ones
Definition: resolver.hpp:143
string relatedPackageName
name of related binary package
Definition: resolver.hpp:111
SuggestedPackages suggestedPackages
target system package set
Definition: resolver.hpp:133
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:93
reason: other version's dependency
Definition: resolver.hpp:91
Type
type
Definition: binaryversion.hpp:37
Type
Definition: resolver.hpp:140
the result of resolver's work
Definition: resolver.hpp:131
group of alternative relations
Definition: relation.hpp:109
RelationExpression relationExpression
relation expression which caused the change
Definition: resolver.hpp:95
@ Accept
finish computations and return true
Definition: resolver.hpp:142