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

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

#include <base/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.
 
template<class TPair >
MapEntry< TPair > mapEntry (const TPair &pair_r)
 Convenience function to create MapEntry from std::pair.
 
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 203 of file LogTools.h.

Constructor & Destructor Documentation

◆ MapEntry()

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

Definition at line 206 of file LogTools.h.

Member Function Documentation

◆ pair()

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

Definition at line 210 of file LogTools.h.

Friends And Related Function Documentation

◆ operator<<()

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

Stream output.

Definition at line 219 of file LogTools.h.

◆ mapEntry()

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

Convenience function to create MapEntry from std::pair.

Definition at line 226 of file LogTools.h.

◆ pair()

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

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
private

Definition at line 214 of file LogTools.h.


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