12 #ifndef ZYPP_POOL_POOLSTATS_H
13 #define ZYPP_POOL_POOLSTATS_H
44 struct PoolStats :
public std::unary_function<ResObject::constPtr, void>
52 typedef std::map<ResKind,Counter<unsigned> >
KindMap;
69 template <
class _Iterator>
71 _Iterator begin_r, _Iterator end_r )
74 std::for_each( begin_r, end_r,
75 functor::functorRef<void,ResObject::constPtr>(stats) );
82 #endif // ZYPP_POOL_POOLSTATS_H
std::ostream & dumpPoolStats(std::ostream &str, _Iterator begin_r, _Iterator end_r)
std::ostream & operator<<(std::ostream &str, const PoolStats &obj)
TraitsType::constPtrType constPtr
void operator()(ResObject::constPtr ptr)
Functor counting ResObjects per Kind.
Counter< unsigned > _total
std::map< ResKind, Counter< unsigned > > KindMap