zypp::_logtoolsdetail::DumpKeys< _Map > Class Template Reference

std::map wrapper for stream output of keys. More...

#include <LogTools.h>

List of all members.

Public Types

typedef
MapKVIteratorTraits
< _Map >
::Key_const_iterator 
MapKey_const_iterator

Public Member Functions

 DumpKeys (const _Map &map_r)
const _Map & map () const
MapKey_const_iterator begin () const
MapKey_const_iterator end () const

Private Attributes

const _Map *const _map

Related Functions

(Note that these are not member functions.)

template<class _Map>
std::ostream & operator<< (std::ostream &str, const DumpKeys< _Map > &obj)
 Stream output.
template<class _Map>
DumpKeys< _Map > dumpKeys (const _Map &map_r)
 Convenience function to create DumpKeys from std::map.


Detailed Description

template<class _Map>
class zypp::_logtoolsdetail::DumpKeys< _Map >

std::map wrapper for stream output of keys.

Uses MapKVIterator iterate and write the key values.

 std::map<...> mymap;
 std::cout << dumpKeys(mymap) << std::endl;

Definition at line 240 of file LogTools.h.


Member Typedef Documentation

template<class _Map>
typedef MapKVIteratorTraits<_Map>::Key_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::MapKey_const_iterator

Definition at line 243 of file LogTools.h.


Constructor & Destructor Documentation

template<class _Map>
zypp::_logtoolsdetail::DumpKeys< _Map >::DumpKeys ( const _Map &  map_r  )  [inline]

Definition at line 246 of file LogTools.h.


Member Function Documentation

template<class _Map>
const _Map& zypp::_logtoolsdetail::DumpKeys< _Map >::map (  )  const [inline]

Definition at line 250 of file LogTools.h.

References zypp::_logtoolsdetail::DumpKeys< _Map >::_map.

Referenced by zypp::_logtoolsdetail::DumpKeys< _Map >::begin(), and zypp::_logtoolsdetail::DumpKeys< _Map >::end().

template<class _Map>
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::begin (  )  const [inline]

Definition at line 253 of file LogTools.h.

References zypp::make_map_key_begin(), and zypp::_logtoolsdetail::DumpKeys< _Map >::map().

template<class _Map>
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::end (  )  const [inline]

Definition at line 256 of file LogTools.h.

References zypp::make_map_key_end(), and zypp::_logtoolsdetail::DumpKeys< _Map >::map().


Friends And Related Function Documentation

template<class _Map>
std::ostream & operator<< ( std::ostream &  str,
const DumpKeys< _Map > &  obj 
) [related]

Stream output.

Definition at line 265 of file LogTools.h.

References zypp::dumpRange(), and zypp::solver::detail::str.

template<class _Map>
DumpKeys< _Map > dumpKeys ( const _Map &  map_r  )  [related]

Convenience function to create DumpKeys from std::map.

Definition at line 270 of file LogTools.h.


Member Data Documentation

template<class _Map>
const _Map* const zypp::_logtoolsdetail::DumpKeys< _Map >::_map [private]

Definition at line 260 of file LogTools.h.

Referenced by zypp::_logtoolsdetail::DumpKeys< _Map >::map().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3