zypp::_logtoolsdetail::DumpMap< _Map > Class Template Reference

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

#include <LogTools.h>

List of all members.

Public Types

typedef _Map MapType
typedef _Map::value_type PairType
typedef MapEntry
< PairType
MapEntryType
typedef
transform_iterator
< Transformer,
typename
MapType::const_iterator > 
MapEntry_const_iterator

Public Member Functions

 DumpMap (const _Map &map_r)
const _Map & map () const
MapEntry_const_iterator begin () const
MapEntry_const_iterator end () const
ZYPP_DEPRECATED
MapEntry_const_iterator 
map_begin () const
ZYPP_DEPRECATED
MapEntry_const_iterator 
map_end () const

Private Attributes

const _Map *const _map

Related Functions

(Note that these are not member functions.)

template<class _Map>
std::ostream & operator<< (std::ostream &str, const DumpMap< _Map > &obj)
 Stream output.
template<class _Map>
DumpMap< _Map > dumpMap (const _Map &map_r)
 Convenience function to create DumpMap from std::map.

Classes

struct  Transformer


Detailed Description

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

std::map wrapper for stream output.

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

Definition at line 176 of file LogTools.h.


Member Typedef Documentation

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

Definition at line 179 of file LogTools.h.

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

Definition at line 180 of file LogTools.h.

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

Definition at line 181 of file LogTools.h.

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

Definition at line 190 of file LogTools.h.


Constructor & Destructor Documentation

template<class _Map>
zypp::_logtoolsdetail::DumpMap< _Map >::DumpMap ( const _Map &  map_r  )  [inline]

Definition at line 193 of file LogTools.h.


Member Function Documentation

template<class _Map>
const _Map& zypp::_logtoolsdetail::DumpMap< _Map >::map (  )  const [inline]

Definition at line 197 of file LogTools.h.

References zypp::_logtoolsdetail::DumpMap< _Map >::_map.

Referenced by zypp::_logtoolsdetail::DumpMap< _Map >::begin(), zypp::_logtoolsdetail::DumpMap< _Map >::end(), zypp::_logtoolsdetail::DumpMap< _Map >::map_begin(), and zypp::_logtoolsdetail::DumpMap< _Map >::map_end().

template<class _Map>
MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< _Map >::begin (  )  const [inline]

Definition at line 200 of file LogTools.h.

References zypp::_logtoolsdetail::DumpMap< _Map >::map().

Referenced by zypp::_logtoolsdetail::DumpMap< _Map >::map_begin().

template<class _Map>
MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< _Map >::end (  )  const [inline]

Definition at line 203 of file LogTools.h.

References zypp::_logtoolsdetail::DumpMap< _Map >::map().

Referenced by zypp::_logtoolsdetail::DumpMap< _Map >::map_end().

template<class _Map>
ZYPP_DEPRECATED MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< _Map >::map_begin (  )  const [inline]

Deprecated:
Use begin.

Definition at line 207 of file LogTools.h.

References zypp::_logtoolsdetail::DumpMap< _Map >::begin(), and zypp::_logtoolsdetail::DumpMap< _Map >::map().

template<class _Map>
ZYPP_DEPRECATED MapEntry_const_iterator zypp::_logtoolsdetail::DumpMap< _Map >::map_end (  )  const [inline]

Deprecated:
Use end.

Definition at line 211 of file LogTools.h.

References zypp::_logtoolsdetail::DumpMap< _Map >::end(), and zypp::_logtoolsdetail::DumpMap< _Map >::map().


Friends And Related Function Documentation

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

Stream output.

Definition at line 220 of file LogTools.h.

References zypp::dumpRange(), and zypp::solver::detail::str.

template<class _Map>
DumpMap< _Map > dumpMap ( const _Map &  map_r  )  [related]

Convenience function to create DumpMap from std::map.

Definition at line 225 of file LogTools.h.


Member Data Documentation

template<class _Map>
const _Map* const zypp::_logtoolsdetail::DumpMap< _Map >::_map [private]

Definition at line 215 of file LogTools.h.

Referenced by zypp::_logtoolsdetail::DumpMap< _Map >::map().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3