libzypp  17.6.1
zypp::_logtoolsdetail::DumpMap< TMap > Class Template Reference

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

#include <LogTools.h>

Classes

struct  Transformer
 

Public Types

typedef TMap MapType
 
typedef TMap::value_type PairType
 
typedef MapEntry< PairTypeMapEntryType
 
typedef transform_iterator< Transformer, typename MapType::const_iterator > MapEntry_const_iterator
 

Public Member Functions

 DumpMap (const TMap &map_r)
 
const TMap & map () const
 
MapEntry_const_iterator begin () const
 
MapEntry_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 DumpMap< TMap > &obj)
 
template<class TMap >
DumpMap< TMap > dumpMap (const TMap &map_r)
 

Detailed Description

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

std::map wrapper for stream output.

Uses a transform_iterator to wrap the std::pair into MapEntry.

Definition at line 237 of file LogTools.h.

Member Typedef Documentation

◆ MapType

template<class TMap >
typedef TMap zypp::_logtoolsdetail::DumpMap< TMap >::MapType

Definition at line 240 of file LogTools.h.

◆ PairType

template<class TMap >
typedef TMap::value_type zypp::_logtoolsdetail::DumpMap< TMap >::PairType

Definition at line 241 of file LogTools.h.

◆ MapEntryType

template<class TMap >
typedef MapEntry<PairType> zypp::_logtoolsdetail::DumpMap< TMap >::MapEntryType

Definition at line 242 of file LogTools.h.

◆ MapEntry_const_iterator

template<class TMap >
typedef transform_iterator<Transformer, typename MapType::const_iterator> zypp::_logtoolsdetail::DumpMap< TMap >::MapEntry_const_iterator

Definition at line 251 of file LogTools.h.

Constructor & Destructor Documentation

◆ DumpMap()

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

Definition at line 254 of file LogTools.h.

Member Function Documentation

◆ map()

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

Definition at line 258 of file LogTools.h.

◆ begin()

template<class TMap >
MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< TMap >::begin ( ) const
inline

Definition at line 261 of file LogTools.h.

◆ end()

template<class TMap >
MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< TMap >::end ( ) const
inline

Definition at line 264 of file LogTools.h.

Friends And Related Function Documentation

◆ operator<<()

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

Stream output.

Definition at line 273 of file LogTools.h.

◆ dumpMap()

template<class TMap >
DumpMap< TMap > dumpMap ( const TMap &  map_r)
related

Convenience function to create DumpMap from std::map.

Definition at line 278 of file LogTools.h.

Member Data Documentation

◆ _map

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

Definition at line 268 of file LogTools.h.


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