libzypp  17.25.10
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)
 Stream output. More...
template<class TPair >
MapEntry< TPair > mapEntry (const TPair &pair_r)
 Convenience function to create MapEntry from std::pair. More...
for one attribute pair

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

◆ MapEntry()

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

Definition at line 205 of file LogTools.h.

Member Function Documentation

◆ pair()

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

Definition at line 209 of file LogTools.h.

Friends And Related Function Documentation

◆ operator<<()

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

Stream output.

Definition at line 218 of file LogTools.h.

◆ mapEntry()

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

Convenience function to create MapEntry from std::pair.

Definition at line 225 of file LogTools.h.

◆ pair()

template<class TPair >
for one attribute zypp::xmlout::pair

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Member Data Documentation

◆ _pair

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

Definition at line 213 of file LogTools.h.

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