libzypp  13.10.6
Boost.Iterator Library

Classes

struct  zypp::GetPairFirst< _Pair >
 Functor taking a std::pair returning std::pair.first. More...
 
struct  zypp::GetPairSecond< _Pair >
 Functor taking a std::pair returning std::pair.second . More...
 
struct  zypp::MapKVIteratorTraits< _Map >
 Traits for std::map key and value iterators. More...
 
class  filter_iterator
 An iterator over the subset of elements of some sequence which satisfy a given predicate. More...
 
class  transform_iterator
 An iterator over elements which are the result of applying some functional transformation to the elements of an underlying sequence. More...
 
class  function_output_iterator
 An output iterator wrapping a unary function object; each time an element is written into the dereferenced iterator, it is passed as a parameter to the function object. More...
 

Functions

template<class _Filter , class _Container >
filter_iterator< _Filter,
typename
_Container::const_iterator > 
zypp::make_filter_begin (_Filter f, const _Container &c)
 Convenience to create filter_iterator from container::begin(). More...
 
template<class _Filter , class _Container >
filter_iterator< _Filter,
typename
_Container::const_iterator > 
zypp::make_filter_begin (const _Container &c)
 Convenience to create filter_iterator from container::begin(). More...
 
template<class _Filter , class _Container >
filter_iterator< _Filter,
typename
_Container::const_iterator > 
zypp::make_filter_end (_Filter f, const _Container &c)
 Convenience to create filter_iterator from container::end(). More...
 
template<class _Filter , class _Container >
filter_iterator< _Filter,
typename
_Container::const_iterator > 
zypp::make_filter_end (const _Container &c)
 Convenience to create filter_iterator from container::end(). More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Key_const_iterator 
zypp::make_map_key_begin (const _Map &map_r)
 Convenience to create the key iterator from container::begin() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Key_const_iterator 
zypp::make_map_key_end (const _Map &map_r)
 Convenience to create the key iterator from container::end() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Value_const_iterator 
zypp::make_map_value_begin (const _Map &map_r)
 Convenience to create the value iterator from container::begin() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Value_const_iterator 
zypp::make_map_value_end (const _Map &map_r)
 Convenience to create the value iterator from container::end() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Key_const_iterator 
zypp::make_map_key_lower_bound (const _Map &map_r, const typename _Map::key_type &key_r)
 Convenience to create the key iterator from container::lower_bound() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Key_const_iterator 
zypp::make_map_key_upper_bound (const _Map &map_r, const typename _Map::key_type &key_r)
 Convenience to create the key iterator from container::upper_bound() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Value_const_iterator 
zypp::make_map_value_lower_bound (const _Map &map_r, const typename _Map::key_type &key_r)
 Convenience to create the value iterator from container::lower_bound() More...
 
template<class _Map >
MapKVIteratorTraits< _Map >
::Value_const_iterator 
zypp::make_map_value_upper_bound (const _Map &map_r, const typename _Map::key_type &key_r)
 Convenience to create the value iterator from container::upper_bound() More...
 

Detailed Description

See Also
http://www.boost.org/libs/iterator/doc/index.html

There are in fact more interesting iterator concepts available than the ones listed above. Have a look at them.

Some of the iterator types are already dragged into namespace zypp. Feel free to add what's missing.

Todo:
Separate them into individual zypp header files.

Function Documentation

template<class _Filter , class _Container >
filter_iterator<_Filter, typename _Container::const_iterator> zypp::make_filter_begin ( _Filter  f,
const _Container &  c 
)

Convenience to create filter_iterator from container::begin().

Definition at line 99 of file Iterator.h.

template<class _Filter , class _Container >
filter_iterator<_Filter, typename _Container::const_iterator> zypp::make_filter_begin ( const _Container &  c)

Convenience to create filter_iterator from container::begin().

Definition at line 107 of file Iterator.h.

template<class _Filter , class _Container >
filter_iterator<_Filter, typename _Container::const_iterator> zypp::make_filter_end ( _Filter  f,
const _Container &  c 
)

Convenience to create filter_iterator from container::end().

Definition at line 115 of file Iterator.h.

template<class _Filter , class _Container >
filter_iterator<_Filter, typename _Container::const_iterator> zypp::make_filter_end ( const _Container &  c)

Convenience to create filter_iterator from container::end().

Definition at line 123 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Key_const_iterator zypp::make_map_key_begin ( const _Map &  map_r)
inline

Convenience to create the key iterator from container::begin()

Definition at line 226 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Key_const_iterator zypp::make_map_key_end ( const _Map &  map_r)
inline

Convenience to create the key iterator from container::end()

Definition at line 231 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Value_const_iterator zypp::make_map_value_begin ( const _Map &  map_r)
inline

Convenience to create the value iterator from container::begin()

Definition at line 236 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Value_const_iterator zypp::make_map_value_end ( const _Map &  map_r)
inline

Convenience to create the value iterator from container::end()

Definition at line 241 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Key_const_iterator zypp::make_map_key_lower_bound ( const _Map &  map_r,
const typename _Map::key_type &  key_r 
)
inline

Convenience to create the key iterator from container::lower_bound()

Definition at line 246 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Key_const_iterator zypp::make_map_key_upper_bound ( const _Map &  map_r,
const typename _Map::key_type &  key_r 
)
inline

Convenience to create the key iterator from container::upper_bound()

Definition at line 251 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Value_const_iterator zypp::make_map_value_lower_bound ( const _Map &  map_r,
const typename _Map::key_type &  key_r 
)
inline

Convenience to create the value iterator from container::lower_bound()

Definition at line 256 of file Iterator.h.

template<class _Map >
MapKVIteratorTraits<_Map>::Value_const_iterator zypp::make_map_value_upper_bound ( const _Map &  map_r,
const typename _Map::key_type &  key_r 
)
inline

Convenience to create the value iterator from container::upper_bound()

Definition at line 261 of file Iterator.h.