libzypp  16.22.5
zypp::_logtoolsdetail::MapEntry< TPair > Class Template Reference

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

#include <LogTools.h>

Public Member Functions

 MapEntry (const TPair &pair_r)
 
const TPair & pair () const
 

Private Attributes

const TPair *const _pair
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

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

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 202 of file LogTools.h.

Constructor & Destructor Documentation

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

Definition at line 205 of file LogTools.h.

Member Function Documentation

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

Definition at line 209 of file LogTools.h.

Friends And Related Function Documentation

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

Stream output.

Definition at line 218 of file LogTools.h.

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

Convenience function to create MapEntry from std::pair.

Definition at line 225 of file LogTools.h.

Member Data Documentation

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

Definition at line 213 of file LogTools.h.


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