libzypp  15.28.6
zypp::_logtoolsdetail::DumpKeys< TMap > Class Template Reference

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

#include <LogTools.h>

Public Types

typedef MapKVIteratorTraits
< TMap >::Key_const_iterator 
MapKey_const_iterator
 

Public Member Functions

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

Private Attributes

const TMap *const _map
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

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

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.

Member Typedef Documentation

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

Definition at line 247 of file LogTools.h.

Constructor & Destructor Documentation

template<class TMap >
zypp::_logtoolsdetail::DumpKeys< TMap >::DumpKeys ( const TMap &  map_r)
inline

Definition at line 250 of file LogTools.h.

Member Function Documentation

template<class TMap >
const TMap& zypp::_logtoolsdetail::DumpKeys< TMap >::map ( ) const
inline

Definition at line 254 of file LogTools.h.

template<class TMap >
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< TMap >::begin ( ) const
inline

Definition at line 257 of file LogTools.h.

template<class TMap >
MapKey_const_iterator zypp::_logtoolsdetail::DumpKeys< TMap >::end ( ) const
inline

Definition at line 260 of file LogTools.h.

Friends And Related Function Documentation

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

Stream output.

Definition at line 269 of file LogTools.h.

template<class TMap >
DumpKeys< TMap > dumpKeys ( const TMap &  map_r)
related

Convenience function to create DumpKeys from std::map.

Definition at line 274 of file LogTools.h.

Member Data Documentation

template<class TMap >
const TMap* const zypp::_logtoolsdetail::DumpKeys< TMap >::_map
private

Definition at line 264 of file LogTools.h.


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