libzypp  13.10.6
zypp::_logtoolsdetail::MapEntry< _Pair > Class Template Reference

std::pair wrapper for std::map output. More...

#include <LogTools.h>

Public Member Functions

 MapEntry (const _Pair &pair_r)
 
const _Pair & pair () const
 

Private Attributes

const _Pair *const _pair
 

Related Functions

(Note that these are not member functions.)

template<class _Pair >
std::ostream & operator<< (std::ostream &str, const MapEntry< _Pair > &obj)
 
template<class _Pair >
MapEntry< _Pair > mapEntry (const _Pair &pair_r)
 

Detailed Description

template<class _Pair>
class zypp::_logtoolsdetail::MapEntry< _Pair >

std::pair wrapper for std::map output.

Just because we want a special output format for std::pair used in a std::map. The mapped std::pair is printed as [key] = value.

Definition at line 153 of file LogTools.h.

Constructor & Destructor Documentation

template<class _Pair >
zypp::_logtoolsdetail::MapEntry< _Pair >::MapEntry ( const _Pair &  pair_r)
inline

Definition at line 156 of file LogTools.h.

Member Function Documentation

template<class _Pair >
const _Pair& zypp::_logtoolsdetail::MapEntry< _Pair >::pair ( ) const
inline

Definition at line 160 of file LogTools.h.

Friends And Related Function Documentation

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

Stream output.

Definition at line 169 of file LogTools.h.

template<class _Pair >
MapEntry< _Pair > mapEntry ( const _Pair &  pair_r)
related

Convenience function to create MapEntry from std::pair.

Definition at line 176 of file LogTools.h.

Member Data Documentation

template<class _Pair >
const _Pair* const zypp::_logtoolsdetail::MapEntry< _Pair >::_pair
private

Definition at line 164 of file LogTools.h.


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