41 typedef std::map<Pattern::constPtr, DefaultIntegral<bool, false> > PatternMap;
43 typedef PatternMap::key_type value_type;
44 typedef MapKVIteratorTraits<PatternMap>::Key_const_iterator const_iterator;
61 expandIncludes( unprocessed );
62 expandExtending( unprocessed );
65 }
while( (unprocessed = nextUnprocessed()) );
71 const_iterator begin()
const
74 const_iterator end()
const
94 for_( it, c.begin(), c.end() )
96 expandInclude( Capability( it->c_str() ) );
101 void expandInclude(
const Capability & include_r )
103 sat::WhatProvides w( include_r );
104 for_( it, w.begin(), w.end() )
115 for_( it, pool.byKindBegin<Pattern>(), pool.byKindEnd<Pattern>() )
117 expandIfExtends( pat_r, *it );
122 void expandIfExtends(
const Pattern::constPtr & pat_r,
const PoolItem & extending_r )
126 for_( it, c.begin(), c.end() )
128 if ( providedBy( pat_r, Capability( it->c_str() ) ) )
143 sat::Solvable pat( pat_r->satSolvable() );
144 sat::WhatProvides w( extends_r );
145 for_( it, w.begin(), w.end() )
238 PatternExpander expander;
239 if ( ! expander.doExpand(
this ) )
243 for_( it, expander.begin(), expander.end() )
246 result.
get().insert( c.begin(), c.end() );
std::string order() const
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
static const SolvAttr order
static const SolvAttr isvisible
static const SolvAttr isdefault
Container of Capability (currently read only).
sat::ArrayAttr< IdString, IdString > NameList
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Contents depends() const
Ui hint: Dependent packages.
Contents contents() const
The collection of packages associated with this pattern.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
LookupAttr::transformIterator based container to retrieve list attributes.
filter_iterator< _Filter, typename _Container::const_iterator > make_filter_begin(_Filter f, const _Container &c)
Convenience to create filter_iterator from container::begin().
std::tr1::unordered_set< Capability > CapabilitySet
static const SolvAttr icon
sat::SolvableSet Contents
Capabilities requires() const
NameList extends() const
Ui hint: patterns this one extends.
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
const sat::Solvable & satSolvable() const
Access the corresponding ::Solvable.
static const SolvAttr category
Contents core() const
Ui hint: Required Packages.
Interface base for resolvable objects (common data).
Capabilities suggests() const
TraitsType::constPtrType constPtr
Container & get()
The set.
static const SolvAttr includes
MapKVIteratorTraits< _Map >::Key_const_iterator make_map_key_begin(const _Map &map_r)
Convenience to create the key iterator from container::begin()
const_iterator end() const
Iterator pointing behind the last Capability.
NameList includes() const
Ui hint: included patterns.
Pattern(const sat::Solvable &solvable_r)
Ctor.
Capabilities recommends() const
filter_iterator< _Filter, typename _Container::const_iterator > make_filter_end(_Filter f, const _Container &c)
Convenience to create filter_iterator from container::end().
std::string category(const Locale &lang_r=Locale()) const
MapKVIteratorTraits< _Map >::Key_const_iterator make_map_key_end(const _Map &map_r)
Convenience to create the key iterator from container::end()
static const SolvAttr extends
const_iterator begin() const
Iterator pointing to the first Capability.
static const SolvAttr script
static ResPool instance()
Singleton ctor.
Solvable set wrapper to allow adding additioanal convenience iterators.