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.)

std::ostream & operator<< (std::ostream &str, const DumpKeys< _Map > &obj)
DumpKeys< _Map > dumpKeys (const _Map &map_r)


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.

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().

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().


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.

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.


The documentation for this class was generated from the following file:
Generated on Thu Apr 24 02:25:09 2008 for zypp by  doxygen 1.4.6