libzypp  13.10.6
zypp::functor::GetFirst< _Tp > Struct Template Reference

Strore the 1st result found in the variable passed to the ctor. More...

#include <Functional.h>

Public Member Functions

 GetFirst (_Tp &result_r)
 
bool operator() (const _Tp &val_r)
 

Private Attributes

_Tp * _result
 

Detailed Description

template<class _Tp>
struct zypp::functor::GetFirst< _Tp >

Strore the 1st result found in the variable passed to the ctor.

* PoolItem result;
* invokeOnEach( pool.byIdentBegin(installed), pool.byIdentEnd(installed),
* filter::SameItem( installed ),
* getFirst( result ) );
*

Definition at line 370 of file Functional.h.

Constructor & Destructor Documentation

template<class _Tp >
zypp::functor::GetFirst< _Tp >::GetFirst ( _Tp &  result_r)
inline

Definition at line 372 of file Functional.h.

Member Function Documentation

template<class _Tp >
bool zypp::functor::GetFirst< _Tp >::operator() ( const _Tp &  val_r)
inline

Definition at line 375 of file Functional.h.

Member Data Documentation

template<class _Tp >
_Tp* zypp::functor::GetFirst< _Tp >::_result
private

Definition at line 379 of file Functional.h.


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