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;
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;
Type
Definition: resolver.hpp:140
map< string, SuggestedPackage > SuggestedPackages
Definition: resolver.hpp:129
reason: auto-removal
Definition: resolver.hpp:82
BinaryVersion::RelationTypes::Type dependencyType
type of dependency that caused the change
Definition: resolver.hpp:94
Definition: resolver.hpp:151
Definition: binarypackage.hpp:26
Type
type
Definition: binaryversion.hpp:37
finish computations and return true
Definition: resolver.hpp:142
std::function< UserAnswer::Type(const Offer &) > CallbackType
callback function type
Definition: resolver.hpp:149
reason: asked by user
Definition: resolver.hpp:61
reason: implicitly changed by resolver
Definition: resolver.hpp:71
vector< shared_ptr< const Reason > > reasons
list of resolver reasons if tracked
Definition: resolver.hpp:126
base class for resolver decision reasons
Definition: resolver.hpp:48
RelationExpression relationExpression
relation expression which caused the change
Definition: resolver.hpp:95
const BinaryVersion * version
package version
Definition: resolver.hpp:124
throw out the proposed solution and work on other ones
Definition: resolver.hpp:143
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:110
reason: other version's dependency
Definition: resolver.hpp:91
const BinaryVersion * version
version that caused the change
Definition: resolver.hpp:93
the result of resolver's work
Definition: resolver.hpp:131
binary version info
Definition: binaryversion.hpp:31
user callback answer variants
Definition: resolver.hpp:138
SuggestedPackages suggestedPackages
target system package set
Definition: resolver.hpp:133
dependency problems resolver
Definition: resolver.hpp:42
virtual ~Resolver()
destructor
Definition: resolver.hpp:229
group of alternative relations
Definition: relation.hpp:109
string relatedPackageName
name of related binary package
Definition: resolver.hpp:111
reason: source-synchronized with a related binary package
Definition: resolver.hpp:108
vector< string > reasonPackageNames
changes in these packages caused the change in this package
Definition: resolver.hpp:127
resolver's main solution item
Definition: resolver.hpp:122