zypp::pool::PoolStats Struct Reference

Functor counting ResObjects per Kind. More...

#include <PoolStats.h>

Inheritance diagram for zypp::pool::PoolStats:
[legend]

List of all members.

Public Types

typedef std::map< ResKind,
Counter< unsigned > > 
KindMap

Public Member Functions

void operator() (ResObject::constPtr ptr)

Public Attributes

Counter< unsigned > _total
KindMap _perKind

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const PoolStats &obj)
template<class _Iterator >
std::ostream & dumpPoolStats (std::ostream &str, _Iterator begin_r, _Iterator end_r)


Detailed Description

Functor counting ResObjects per Kind.

See also:
dumpPoolStats
 Total: 2830
   language:     81
   package:      2710
   product:      2
   selection:    36
   system:       1

Definition at line 44 of file PoolStats.h.


Member Typedef Documentation

typedef std::map<ResKind,Counter<unsigned> > zypp::pool::PoolStats::KindMap

Definition at line 52 of file PoolStats.h.


Member Function Documentation

void zypp::pool::PoolStats::operator() ( ResObject::constPtr  ptr  )  [inline]

Definition at line 46 of file PoolStats.h.

References _perKind, and _total.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const PoolStats obj 
) [related]

Stream output

Definition at line 31 of file PoolStats.cc.

template<class _Iterator >
std::ostream & dumpPoolStats ( std::ostream &  str,
_Iterator  begin_r,
_Iterator  end_r 
) [related]

Convenience to count and print out the number of ResObjects per Kind in a container. Fits container of ResObject::Ptr or PoolItem.

Definition at line 70 of file PoolStats.h.


Member Data Documentation

Definition at line 53 of file PoolStats.h.

Referenced by operator()(), and zypp::pool::operator<<().

Definition at line 54 of file PoolStats.h.

Referenced by operator()(), and zypp::pool::operator<<().


The documentation for this struct was generated from the following file:

doxygen