libzypp  15.28.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 368 of file Functional.h.

Constructor & Destructor Documentation

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

Definition at line 370 of file Functional.h.

Member Function Documentation

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

Definition at line 373 of file Functional.h.

Member Data Documentation

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

Definition at line 377 of file Functional.h.


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