paludis
Version 2.6.0
|
#include <user_dep_spec.hh>
Public Member Functions | |
virtual const std::pair< bool, std::string > | requirement_met (const Environment *const, const ChangedChoices *, const std::shared_ptr< const PackageID > &, const std::shared_ptr< const PackageID > &, const ChangedChoices *const) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
virtual const std::string | as_human_string (const std::shared_ptr< const PackageID > &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
virtual const std::string | as_raw_string () const PALUDIS_ATTRIBUTE((warn_unused_result)) |
virtual Tribool | accumulate_changes_to_make_met (const Environment *const, const ChangedChoices *const, const std::shared_ptr< const PackageID > &, const std::shared_ptr< const PackageID > &, ChangedChoices &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
![]() | |
AdditionalPackageDepSpecRequirement (const AdditionalPackageDepSpecRequirement &)=delete | |
AdditionalPackageDepSpecRequirement & | operator= (const AdditionalPackageDepSpecRequirement &)=delete |
Basic operations | |
UserKeyRequirement (const std::string &) | |
~UserKeyRequirement () | |
A key requirement for a user PackageDepSpec.
|
virtual |
If possible, indicate which choices to change to make our requirement met for a particular ID.
Verifies that the ID has the appropriate choice, and that that choice isn't locked.
Returns true for changes made, false for not possible, indeterminate for nothing needs changing.
spec_id | The PackageID the spec comes from. May be null. Used for [use=] style dependencies. |
Implements paludis::AdditionalPackageDepSpecRequirement.
|
virtual |
Return a human readable string representation of ourself.
spec_id | The PackageID the spec comes from. May be null. Used for [use=] style dependencies. |
Implements paludis::AdditionalPackageDepSpecRequirement.
|
virtual |
Return a raw string representation of ourself.
Implements paludis::AdditionalPackageDepSpecRequirement.
|
virtual |
Is our requirement met for a given PackageID?
The string in the return type might be a description of why the requirement was not met. Sometimes better messages can be given than simply the return value of as_human_string() when the ID to be matched is known. If the bool is true, the string is meaningless.
spec_id | The PackageID the spec comes from. May be null. Used for [use=] style dependencies. |
Implements paludis::AdditionalPackageDepSpecRequirement.