12#ifndef ZYPP_SAT_SOLVABLESET_H
13#define ZYPP_SAT_SOLVABLESET_H
17#include <zypp/base/PtrTypes.h>
18#include <zypp/base/Hash.h>
52 template<
class TInputIterator>
60 {
return _pimpl->empty(); }
73 {
return _pimpl->begin(); }
92 template<
class TIterator>
93 void insert( TIterator begin_r, TIterator end_r )
Base class providing common iterator types based on a Solvable iterator.
std::unordered_set< Solvable >::const_iterator Solvable_iterator
Solvable set wrapper to allow adding additional convenience iterators.
Container & get()
The set.
RWCOW_pointer< Container > _pimpl
Pointer to implementation.
const Container & get() const
The set.
std::unordered_set< Solvable > Container
void clear()
Clear the container.
bool empty() const
Whether the set is epmty.
Container::value_type value_type
size_type size() const
Size of the set.
Container::size_type size_type
bool insert(const TSolv &solv_r)
Insert a Solvable.
const_iterator end() const
Iterator pointing behind the last Solvable.
friend std::ostream & operator<<(std::ostream &str, const SolvableSet &obj)
bool contains(const TSolv &solv_r) const
void insert(TIterator begin_r, TIterator end_r)
Insert a range of Solvables.
SolvableSet()
Default ctor.
const_iterator begin() const
Iterator pointing to the first Solvable.
SolvableSet(TInputIterator begin_r, TInputIterator end_r)
Ctor building a set from a range.
Solvable_iterator const_iterator
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer supporting 'copy on write' functionality.
To Solvable transform functor.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.