paludis Version 3.0.2
The one true package mangler
paludis::Selection Class Reference

#include <selection.hh>

Inheritance diagram for paludis::Selection:

Public Member Functions

std::string as_string () const PALUDIS_ATTRIBUTE((warn_unused_result))
std::shared_ptr< PackageIDSequence > perform_select (const Environment *const) const PALUDIS_ATTRIBUTE((warn_unused_result))

Protected Member Functions

 Selection (const std::shared_ptr< const SelectionHandler > &)

Basic operations

 Selection (const Selection &)
Selection & operator= (const Selection &)

Detailed Description

A Selection subclass is passed to Environment::operator[] to obtain a set of PackageID instances with given properties.

Most Selection subclasses take a FilteredGenerator as a constructor parameter that specifies the required properties; the Selection itself is merely responsible for determining the format of the results.

Examples
example_selection.cc.

Constructor & Destructor Documentation

◆ Selection()

paludis::Selection::Selection ( const Selection & )

Selection subclasses can be copied to a Selection without destroying information.

Member Function Documentation

◆ as_string()

std::string paludis::Selection::as_string ( ) const

Return a string representation of our selection query.

References PALUDIS_ATTRIBUTE.

◆ perform_select()

std::shared_ptr< PackageIDSequence > paludis::Selection::perform_select ( const Environment * const ) const

For use by Environment, not to be called directly.

References PALUDIS_ATTRIBUTE, and perform_select().

Referenced by perform_select().


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