12#ifndef ZYPP_POOL_POOLSTATS_H
13#define ZYPP_POOL_POOLSTATS_H
17#include <zypp/base/Iterator.h>
52 typedef std::map<ResKind,Counter<unsigned> >
KindMap;
69 template <
class TIterator>
71 TIterator begin_r, TIterator end_r )
74 std::for_each( begin_r, end_r, std::ref(stats) );
Integral type with initial value 0.
TraitsType::constPtrType constPtr
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const PoolStats &obj)
Easy-to use interface to the ZYPP dependency resolver.
Functor counting ResObjects per Kind.
void operator()(ResObject::constPtr ptr)
std::ostream & dumpPoolStats(std::ostream &str, TIterator begin_r, TIterator end_r)
Convenience to count and print out the number of ResObjects per Kind in a container.
std::map< ResKind, Counter< unsigned > > KindMap
Counter< unsigned > _total