12 #ifndef ZYPP_POOLITEMBEST_H 13 #define ZYPP_POOLITEMBEST_H 62 typedef std::unordered_map<IdString,PoolItem>
Container;
65 typedef boost::function<bool ( const PoolItem & lhs, const PoolItem & rhs )>
Predicate;
86 template<
class TIterator>
99 template<
class TIterator>
100 void add( TIterator begin_r, TIterator end_r )
102 for_( it, begin_r, end_r )
155 #endif // ZYPP_POOLITEMBEST_H Container::value_type value_type
A Solvable object within the sat Pool.
std::unordered_map< IdString, PoolItem > Container
shared_ptr< void > _dont_use_this_use_pimpl
Avoid need to include Impl definition when inlined ctors (due to tepmlate) are provided.
Container::size_type size_type
Helper filtering the files offered by a RepomdFileReader.
void add(TIterator begin_r, TIterator end_r)
Feed a range of sat::Solvable or PoolItem.
const Container & container() const
boost::function< bool(const PoolItem &lhs, const PoolItem &rhs)> Predicate
Predicate returning True if lhs is a better choice.
PoolItem find(const PoolItem &pi_r) const
String related utilities and Regular expression matching.
transform_iterator< GetPairSecond< typename MapType::value_type >, typename MapType::const_iterator > Value_const_iterator
The value iterator type.
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_begin(const TMap &map_r)
Convenience to create the value iterator from container::begin()
Access to the sat-pools string space.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
MapKVIteratorTraits< Container >::Value_const_iterator iterator
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_begin(const TMap &map_r)
Convenience to create the key iterator from container::begin()
PoolItemBest(const PoolItem &pi_r)
Ctor feeding a PoolItem.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
MapKVIteratorTraits< Container >::Key_const_iterator ident_iterator
ident_iterator identBegin() const
Pointer to the first item.
MapKVIteratorTraits< TMap >::Key_const_iterator make_map_key_end(const TMap &map_r)
Convenience to create the key iterator from container::end()
const RWCOW_pointer< Impl > & pimpl() const
Pointer to implementation.
bool empty() const
Whether PoolItems were collected.
MapKVIteratorTraits< TMap >::Value_const_iterator make_map_value_end(const TMap &map_r)
Convenience to create the value iterator from container::end()
iterator begin() const
Pointer to the first PoolItem.
Find the best candidates e.g.
transform_iterator< GetPairFirst< typename MapType::value_type >, typename MapType::const_iterator > Key_const_iterator
The key iterator type.
PoolItemBest()
Default ctor.
size_type size() const
Number of PoolItems collected.
ident_iterator identEnd() const
Pointer behind the last item.
RWCOW_pointer< Impl > & pimpl()
Pointer to implementation.
Combining sat::Solvable and ResStatus.
iterator end() const
Pointer behind the last PoolItem.
PoolItem find(sat::Solvable slv_r) const
void add(sat::Solvable slv_r)
Feed one sat::Solvable.
PoolItemBest(TIterator begin_r, TIterator end_r)
Ctor feeding a range of sat::Solvable or PoolItem.
Easy-to use interface to the ZYPP dependency resolver.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
IdString ident() const
The identifier.
PoolItemBest(sat::Solvable slv_r)
Ctor feeding a sat::Solvable.
PoolItem find(IdString ident_r) const
Return the collected PoolItem with sat::Solvable::ident ident_r.