libzypp: zypp/PoolQueryResult.cc Source File

libzypp 17.38.13

PoolQueryResult.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <iostream>
13#include <zypp-core/base/LogTools.h>
14
15#include <zypp/PoolQueryResult.h>
16
17using std::endl;
18
20namespace 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
LogTools.h
PoolQueryResult.h
zypp::PoolQueryResult
Helper class to collect (not only) PoolQuery results.
Definition PoolQueryResult.h:76
zypp::PoolQueryResult::end
const_iterator end() const
Definition PoolQueryResult.h:120
zypp::PoolQueryResult::begin
const_iterator begin() const
Definition PoolQueryResult.h:117
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
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:419
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
Definition Capabilities.cc:65