libzypp  17.25.1
SolvableSet.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <iostream>
13 #include <zypp/base/LogTools.h>
14 
15 #include <zypp/sat/SolvableSet.h>
16 
17 using std::endl;
18 
20 namespace zypp
21 {
22  namespace sat
24  {
25 
26  /******************************************************************
27  **
28  ** FUNCTION NAME : operator<<
29  ** FUNCTION TYPE : std::ostream &
30  */
31  std::ostream & operator<<( std::ostream & str, const SolvableSet & obj )
32  {
33  return dumpRange( str, obj.begin(), obj.end() );
34  }
35 
37  } // namespace sat
40 } // namespace zypp
zypp::sat::SolvableSet
Solvable set wrapper to allow adding additional convenience iterators.
Definition: SolvableSet.h:35
zypp::dumpRange
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
Print range defined by iterators (multiline style).
Definition: LogTools.h:91
zypp::sat::SolvableSet::begin
const_iterator begin() const
Iterator pointing to the first Solvable.
Definition: SolvableSet.h:72
SolvableSet.h
LogTools.h
zypp::sat::SolvableSet::end
const_iterator end() const
Iterator pointing behind the last Solvable.
Definition: SolvableSet.h:76
zypp::sat::operator<<
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
Definition: FileConflicts.cc:109
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
str
String related utilities and Regular expression matching.