paludis  Version 2.6.0
Public Member Functions | Protected Member Functions | List of all members
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< PackageIDSequenceperform_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 ()
 
Selectionoperator= (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

paludis::Selection::Selection ( const Selection )

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

Member Function Documentation

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

Return a string representation of our selection query.

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

For use by Environment, not to be called directly.


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