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

#include <dep_spec.hh>

+ Inheritance diagram for paludis::ConditionalDepSpec:

Public Member Functions

bool condition_met (const Environment *const, const std::shared_ptr< const PackageID > &) const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool condition_would_be_met_when (const Environment *const, const std::shared_ptr< const PackageID > &, const ChangedChoices &) const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool condition_meetable (const Environment *const, const std::shared_ptr< const PackageID > &) const PALUDIS_ATTRIBUTE((warn_unused_result))
 
const std::shared_ptr< const ConditionalDepSpecDatadata () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
- Public Member Functions inherited from paludis::DepSpec
virtual const std::shared_ptr< const DepSpecAnnotationsmaybe_annotations () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual void set_annotations (const std::shared_ptr< const DepSpecAnnotations > &)
 
virtual ~DepSpec ()
 
 DepSpec (const DepSpec &)=delete
 
DepSpecoperator= (const DepSpec &)=delete
 
- Public Member Functions inherited from paludis::Cloneable< DepSpec >
virtual ~Cloneable ()
 
- Public Member Functions inherited from paludis::CloneUsingThis< DepSpec, ConditionalDepSpec >
virtual std::shared_ptr< DepSpecclone () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual ~CloneUsingThis ()
 

Friends

std::ostream & operator<< (std::ostream &, const ConditionalDepSpec &)
 

Basic operations

 ConditionalDepSpec (const std::shared_ptr< const ConditionalDepSpecData > &)
 
 ConditionalDepSpec (const ConditionalDepSpec &)
 
 ~ConditionalDepSpec ()
 

Detailed Description

Represents a dependency spec whose children should only be considered upon a certain condition (for example, a use dependency block).

Since
0.26

Member Function Documentation

bool paludis::ConditionalDepSpec::condition_meetable ( const Environment const,
const std::shared_ptr< const PackageID > &   
) const

Is our condition meetable?

This takes into account inverses, masks, forces etc.

Since
0.58 takes env, package_id
bool paludis::ConditionalDepSpec::condition_met ( const Environment const,
const std::shared_ptr< const PackageID > &   
) const

Is our condition met?

This takes into account inverses etc.

Since
0.58 takes env, package_id
bool paludis::ConditionalDepSpec::condition_would_be_met_when ( const Environment const,
const std::shared_ptr< const PackageID > &  ,
const ChangedChoices  
) const

Would our condition met, if certain choices were changed?

Since
0.58 takes env, package_id
const std::shared_ptr<const ConditionalDepSpecData> paludis::ConditionalDepSpec::data ( ) const

Fetch our data.

This shouldn't generally be used by clients, but some repositories use it to gain access to additional data stored in the ConditionalDepSpecData.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const ConditionalDepSpec  
)
friend

A ConditionalDepSpec can be written to an ostream.

Since
0.26

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