libzypp
10.5.0
|
std::map wrapper for stream output of keys. More...
#include <LogTools.h>
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) |
template<class _Map > | |
DumpKeys< _Map > | dumpKeys (const _Map &map_r) |
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 244 of file LogTools.h.
typedef MapKVIteratorTraits<_Map>::Key_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::MapKey_const_iterator |
Definition at line 247 of file LogTools.h.
zypp::_logtoolsdetail::DumpKeys< _Map >::DumpKeys | ( | const _Map & | map_r | ) | [inline] |
Definition at line 250 of file LogTools.h.
const _Map& zypp::_logtoolsdetail::DumpKeys< _Map >::map | ( | ) | const [inline] |
Definition at line 254 of file LogTools.h.
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::begin | ( | ) | const [inline] |
Definition at line 257 of file LogTools.h.
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< _Map >::end | ( | ) | const [inline] |
Definition at line 260 of file LogTools.h.
std::ostream & operator<< | ( | std::ostream & | str, |
const DumpKeys< _Map > & | obj | ||
) | [related] |
Stream output.
Definition at line 269 of file LogTools.h.
DumpKeys< _Map > dumpKeys | ( | const _Map & | map_r | ) | [related] |
Convenience function to create DumpKeys from std::map.
Definition at line 274 of file LogTools.h.
const _Map* const zypp::_logtoolsdetail::DumpKeys< _Map >::_map [private] |
Definition at line 264 of file LogTools.h.