paludis  Version 2.6.0
Public Member Functions | List of all members
paludis::ExcludeRequirement Class Reference

#include <user_dep_spec.hh>

+ Inheritance diagram for paludis::ExcludeRequirement:

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))
 
- Public Member Functions inherited from paludis::AdditionalPackageDepSpecRequirement
 AdditionalPackageDepSpecRequirement (const AdditionalPackageDepSpecRequirement &)=delete
 
AdditionalPackageDepSpecRequirementoperator= (const AdditionalPackageDepSpecRequirement &)=delete
 

Basic operations

 ExcludeRequirement (const PackageDepSpec &)
 
 ~ExcludeRequirement ()
 

Detailed Description

An exclude requirement for a PackageDepSpec.

Member Function Documentation

virtual Tribool paludis::ExcludeRequirement::accumulate_changes_to_make_met ( const Environment const,
const ChangedChoices maybe_changes_to_owner,
const std::shared_ptr< const PackageID > &  ,
const std::shared_ptr< const PackageID > &  spec_id,
ChangedChoices  
) const
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.

Parameters
spec_idThe PackageID the spec comes from. May be null. Used for [use=] style dependencies.
Since
0.51
0.55 returns Tribool
0.58 takes spec_id

Implements paludis::AdditionalPackageDepSpecRequirement.

virtual const std::string paludis::ExcludeRequirement::as_human_string ( const std::shared_ptr< const PackageID > &  spec_id) const
virtual

Return a human readable string representation of ourself.

Parameters
spec_idThe PackageID the spec comes from. May be null. Used for [use=] style dependencies.
Since
0.58 takes spec_id

Implements paludis::AdditionalPackageDepSpecRequirement.

virtual const std::string paludis::ExcludeRequirement::as_raw_string ( ) const
virtual

Return a raw string representation of ourself.

Implements paludis::AdditionalPackageDepSpecRequirement.

virtual const std::pair<bool, std::string> paludis::ExcludeRequirement::requirement_met ( const Environment const,
const ChangedChoices maybe_changes_to_owner,
const std::shared_ptr< const PackageID > &  target_id,
const std::shared_ptr< const PackageID > &  spec_id,
const ChangedChoices maybe_changes_to_target 
) const
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.

Parameters
spec_idThe PackageID the spec comes from. May be null. Used for [use=] style dependencies.
Since
0.44 returns pair<bool, std::string>
0.51 takes optional ChangedChoices arguments
0.58 takes id by shared_ptr
0.58 takes spec_id

Implements paludis::AdditionalPackageDepSpecRequirement.


The documentation for this class was generated from the following file: