|
paludis Version 3.0.2
The one true package mangler
|
#include <user_dep_spec.hh>
Public Member Functions | |
| 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 override PALUDIS_ATTRIBUTE((warn_unused_result)) |
| const std::string | as_human_string (const std::shared_ptr< const PackageID > &) const override PALUDIS_ATTRIBUTE((warn_unused_result)) |
| const std::string | as_raw_string () const override PALUDIS_ATTRIBUTE((warn_unused_result)) |
| 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 override PALUDIS_ATTRIBUTE((warn_unused_result)) |
| Public Member Functions inherited from paludis::AdditionalPackageDepSpecRequirement | |
| AdditionalPackageDepSpecRequirement (const AdditionalPackageDepSpecRequirement &)=delete | |
| AdditionalPackageDepSpecRequirement & | operator= (const AdditionalPackageDepSpecRequirement &)=delete |
Basic operations | |
| UserKeyRequirement (const std::string &) | |
A key requirement for a user PackageDepSpec.
|
overridevirtual |
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.
References accumulate_changes_to_make_met(), and PALUDIS_ATTRIBUTE.
Referenced by accumulate_changes_to_make_met().
|
overridevirtual |
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.
References PALUDIS_ATTRIBUTE.
|
overridevirtual |
Return a raw string representation of ourself.
Implements paludis::AdditionalPackageDepSpecRequirement.
References PALUDIS_ATTRIBUTE.
|
overridevirtual |
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.
References PALUDIS_ATTRIBUTE.