paludis::Choice Class Reference
[Choices]

#include <choice.hh>

Inheritance diagram for paludis::Choice:

paludis::PrivateImplementationPattern< C_ >

List of all members.

Iterate over ChoiceValue children

typedef WrappedForwardIterator
< ConstIteratorTag, const
std::tr1::shared_ptr< const
ChoiceValue > > 
ConstIterator
ConstIterator begin () const PALUDIS_ATTRIBUTE((warn_unused_result))
ConstIterator end () const PALUDIS_ATTRIBUTE((warn_unused_result))

Basic operations

 Choice (const ChoiceParams &)
 
Since:
0.38

 ~Choice ()

Properties

const std::string raw_name () const PALUDIS_ATTRIBUTE((warn_unused_result))
const std::string human_name () const PALUDIS_ATTRIBUTE((warn_unused_result))
const ChoicePrefixName prefix () const PALUDIS_ATTRIBUTE((warn_unused_result))
bool contains_every_value () const PALUDIS_ATTRIBUTE((warn_unused_result))
bool hidden () const PALUDIS_ATTRIBUTE((warn_unused_result))
bool show_with_no_prefix () const PALUDIS_ATTRIBUTE((warn_unused_result))
bool consider_added_or_changed () const PALUDIS_ATTRIBUTE((warn_unused_result))

Public Member Functions

void add (const std::tr1::shared_ptr< const ChoiceValue > &)


Detailed Description

An individual choice in a Choices collection.

Examples of a choice include USE, individual USE_EXPAND values (linguas, video_cards etc) and build_options.

Since:
0.32

Member Function Documentation

void paludis::Choice::add ( const std::tr1::shared_ptr< const ChoiceValue > &   ) 

Add a new ChoiceValue.

const std::string paludis::Choice::raw_name (  )  const

Our raw name, for example 'USE' or 'LINGUAS'.

const std::string paludis::Choice::human_name (  )  const

A human-readable name (often the same as raw_name).

const ChoicePrefixName paludis::Choice::prefix (  )  const

The prefix for our ChoiceValue children.

An empty string for USE and ARCH, 'linguas' for LINGUAS etc.

bool paludis::Choice::contains_every_value (  )  const

If true, pretend that we contain every possible value and that any value not listed as a child exists and is not enabled.

For pesky 0-based EAPIs that don't require things like userland_GNU in IUSE, and that don't have a comprehensive list of possible values.

bool paludis::Choice::hidden (  )  const

If true, this option should not usually be shown visually to a user.

bool paludis::Choice::show_with_no_prefix (  )  const

If true, hint that we're better not displaying our prefix to the user.

This is used by --pretend --install and --query to avoid showing a Use: prefix before a list of use flag names.

bool paludis::Choice::consider_added_or_changed (  )  const

If false, do not consider flags in this section for 'added' or 'changed' detection.

Used by build_options.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:09 2009 for paludis by  doxygen 1.5.4