libzypp  13.10.6
zypp::functor::_Collector< _OutputIterator > Struct Template Reference

Functor feeding values to an output_iterator. More...

#include <Collector.h>

Public Member Functions

 _Collector (_OutputIterator iter_r)
 
template<class _Tp >
bool operator() (const _Tp &value_r) const
 

Private Attributes

_OutputIterator _iter
 

Related Functions

(Note that these are not member functions.)

template<class _OutputIterator >
_Collector< _OutputIterator > Collector (_OutputIterator iter_r)
 

Detailed Description

template<class _OutputIterator>
struct zypp::functor::_Collector< _OutputIterator >

Functor feeding values to an output_iterator.

* LocaleSet locales;
* for_each( begin(), end(),
* Collector( std::inserter( locales_r, locales_r.begin() ) ) );
*
See Also
Convenience constructor Collector.

Definition at line 37 of file Collector.h.

Constructor & Destructor Documentation

template<class _OutputIterator >
zypp::functor::_Collector< _OutputIterator >::_Collector ( _OutputIterator  iter_r)
inline

Definition at line 39 of file Collector.h.

Member Function Documentation

template<class _OutputIterator >
template<class _Tp >
bool zypp::functor::_Collector< _OutputIterator >::operator() ( const _Tp &  value_r) const
inline

Definition at line 42 of file Collector.h.

Friends And Related Function Documentation

template<class _OutputIterator >
_Collector< _OutputIterator > Collector ( _OutputIterator  iter_r)
related

Convenience constructor.

Definition at line 55 of file Collector.h.

Member Data Documentation

template<class _OutputIterator >
_OutputIterator zypp::functor::_Collector< _OutputIterator >::_iter
mutableprivate

Definition at line 49 of file Collector.h.


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