paludis Version 3.0.2
The one true package mangler
paludis::ELikeWorkChoiceValue Class Reference
Inheritance diagram for paludis::ELikeWorkChoiceValue:

Public Member Functions

 ELikeWorkChoiceValue (const std::shared_ptr< const PackageID > &, const Environment *const env, const std::shared_ptr< const Choice > &, const ELikeWorkChoiceValueParameter force)
const UnprefixedChoiceName unprefixed_name () const override PALUDIS_ATTRIBUTE((warn_unused_result))
const ChoiceNameWithPrefix name_with_prefix () const override PALUDIS_ATTRIBUTE((warn_unused_result))
bool enabled () const override PALUDIS_ATTRIBUTE((warn_unused_result))
bool enabled_by_default () const override PALUDIS_ATTRIBUTE((warn_unused_result))
bool locked () const override PALUDIS_ATTRIBUTE((warn_unused_result))
const std::string description () const override PALUDIS_ATTRIBUTE((warn_unused_result))
ChoiceOrigin origin () const override PALUDIS_ATTRIBUTE((warn_unused_result))
const std::string parameter () const override PALUDIS_ATTRIBUTE((warn_unused_result))
const std::shared_ptr< const PermittedChoiceValueParameterValues > permitted_parameter_values () const override PALUDIS_ATTRIBUTE((warn_unused_result))
bool presumed () const override PALUDIS_ATTRIBUTE((warn_unused_result))

Static Public Member Functions

static const UnprefixedChoiceName canonical_unprefixed_name () PALUDIS_ATTRIBUTE((warn_unused_result))
static const ChoiceNameWithPrefix canonical_name_with_prefix () PALUDIS_ATTRIBUTE((warn_unused_result))
static bool should_remove (const std::string &) PALUDIS_ATTRIBUTE((warn_unused_result))
static bool should_remove_on_failure (const std::string &) PALUDIS_ATTRIBUTE((warn_unused_result))
static bool should_merge_nondestructively (const std::string &) PALUDIS_ATTRIBUTE((warn_unused_result))

Member Function Documentation

◆ description()

const std::string paludis::ELikeWorkChoiceValue::description ( ) const
overridevirtual

The flag's description, or an empty string.

Implements paludis::ChoiceValue.

References description(), and PALUDIS_ATTRIBUTE.

Referenced by description().

◆ enabled()

bool paludis::ELikeWorkChoiceValue::enabled ( ) const
overridevirtual

Is this flag enabled?

Implements paludis::ChoiceValue.

References enabled(), and PALUDIS_ATTRIBUTE.

Referenced by enabled().

◆ enabled_by_default()

bool paludis::ELikeWorkChoiceValue::enabled_by_default ( ) const
overridevirtual

Would this flag be enabled by default (i.e. before considering any overrides from the Environment)?

Implements paludis::ChoiceValue.

References enabled_by_default(), and PALUDIS_ATTRIBUTE.

Referenced by enabled_by_default().

◆ locked()

bool paludis::ELikeWorkChoiceValue::locked ( ) const
overridevirtual

Is this flag locked (forced or masked)?

Implements paludis::ChoiceValue.

References locked(), and PALUDIS_ATTRIBUTE.

Referenced by locked().

◆ name_with_prefix()

const ChoiceNameWithPrefix paludis::ELikeWorkChoiceValue::name_with_prefix ( ) const
overridevirtual

Our name, with prefix if there is one (for example, 'nls' or 'linguas_en').

Implements paludis::ChoiceValue.

References name_with_prefix(), and PALUDIS_ATTRIBUTE.

Referenced by name_with_prefix().

◆ origin()

ChoiceOrigin paludis::ELikeWorkChoiceValue::origin ( ) const
overridevirtual

The origin of this choice.

Since
0.66

Use this to avoid showing things like LINGUAS values that aren't listed in IUSE but that end up as a ChoiceValue anyway.

Implements paludis::ChoiceValue.

References origin(), and PALUDIS_ATTRIBUTE.

Referenced by origin().

◆ parameter()

const std::string paludis::ELikeWorkChoiceValue::parameter ( ) const
overridevirtual

This flag's parameter, or an empty string if it doesn't have one.

Since
0.40

Implements paludis::ChoiceValue.

References PALUDIS_ATTRIBUTE, and parameter().

Referenced by parameter().

◆ permitted_parameter_values()

const std::shared_ptr< const PermittedChoiceValueParameterValues > paludis::ELikeWorkChoiceValue::permitted_parameter_values ( ) const
overridevirtual

Permitted values for this flag's parameter, or null if there is no parameter.

Since
0.59

Implements paludis::ChoiceValue.

References PALUDIS_ATTRIBUTE, and permitted_parameter_values().

Referenced by permitted_parameter_values().

◆ presumed()

bool paludis::ELikeWorkChoiceValue::presumed ( ) const
overridevirtual

Does this flag have to be explicitly accepted when doing matching?

Implements paludis::ChoiceValue.

References PALUDIS_ATTRIBUTE, and presumed().

Referenced by presumed().

◆ unprefixed_name()

const UnprefixedChoiceName paludis::ELikeWorkChoiceValue::unprefixed_name ( ) const
overridevirtual

Our name, without an prefix (for example, 'nls' or 'en').

Implements paludis::ChoiceValue.

References PALUDIS_ATTRIBUTE.


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