|
paludis Version 3.0.2
The one true package mangler
|
#include <additional_package_dep_spec_requirement.hh>
Public Member Functions | |
| AdditionalPackageDepSpecRequirement (const AdditionalPackageDepSpecRequirement &)=delete | |
| AdditionalPackageDepSpecRequirement & | operator= (const AdditionalPackageDepSpecRequirement &)=delete |
| virtual const std::pair< bool, std::string > | requirement_met (const Environment *const, const ChangedChoices *const maybe_changes_to_owner, const std::shared_ptr< const PackageID > &target_id, const std::shared_ptr< const PackageID > &spec_id, const ChangedChoices *const maybe_changes_to_target) const PALUDIS_ATTRIBUTE((warn_unused_result))=0 |
| virtual Tribool | accumulate_changes_to_make_met (const Environment *const, const ChangedChoices *const maybe_changes_to_owner, const std::shared_ptr< const PackageID > &, const std::shared_ptr< const PackageID > &spec_id, ChangedChoices &) const PALUDIS_ATTRIBUTE((warn_unused_result))=0 |
| virtual const std::string | as_human_string (const std::shared_ptr< const PackageID > &spec_id) const PALUDIS_ATTRIBUTE((warn_unused_result))=0 |
| virtual const std::string | as_raw_string () const PALUDIS_ATTRIBUTE((warn_unused_result))=0 |
An additional requirement for a PackageDepSpec.
|
pure 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. |
Implemented in paludis::ExcludeRequirement, and paludis::UserKeyRequirement.
References PALUDIS_ATTRIBUTE.
|
pure 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. |
Implemented in paludis::ExcludeRequirement, and paludis::UserKeyRequirement.
References PALUDIS_ATTRIBUTE.
|
pure virtual |
Return a raw string representation of ourself.
Implemented in paludis::ExcludeRequirement, and paludis::UserKeyRequirement.
References PALUDIS_ATTRIBUTE, and PALUDIS_VISIBLE.
|
pure 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. |
Implemented in paludis::ExcludeRequirement, and paludis::UserKeyRequirement.
References PALUDIS_ATTRIBUTE.