libzypp  13.10.6
PoolQueryResult.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/PoolQueryResult.h"
16 
17 using std::endl;
18 
20 namespace zypp
21 {
22 
23  /******************************************************************
24  **
25  ** FUNCTION NAME : operator<<
26  ** FUNCTION TYPE : std::ostream &
27  */
28  std::ostream & operator<<( std::ostream & str, const PoolQueryResult & obj )
29  {
30  return dumpRange( str, obj.begin(), obj.end() );
31  }
32 
34 } // namespace zypp
const_iterator begin() const
std::ostream & dumpRange(std::ostream &str, _Iterator begin, _Iterator 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
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:120
Helper class to collect (not only) PoolQuery results.
const_iterator end() const