libzypp  17.25.0
zypp::Repository::ProductInfoIterator Class Reference

Query class for Repository related products. More...

#include <Repository.h>

Inheritance diagram for zypp::Repository::ProductInfoIterator:

Public Member Functions

 ProductInfoIterator ()
std::string label () const
 Product label. More...
CpeId cpeId () const
 The Common Platform Enumeration name for this product. More...

Private Member Functions

 ProductInfoIterator (sat::SolvAttr attr_r, Repository repo_r)
 Hide ctor as just a limited set of attributes is valid. More...
int dereference () const


class Repository
class boost::iterator_core_access

Detailed Description

Query class for Repository related products.

Products are identified by CpeIds within the repositories metadata.

See also

The iterator does not provide a dereference operator so you can do * on it, but you can access the attributes of each related product directly from the iterator.

for_( it, repo.compatibleWithProductBegin(), repo.compatibleWithProductEnd() )
cout << it.label() << ": " << it.cpeid() << endl;

Definition at line 371 of file Repository.h.

Constructor & Destructor Documentation

◆ ProductInfoIterator() [1/2]

zypp::Repository::ProductInfoIterator::ProductInfoIterator ( )

Definition at line 380 of file Repository.h.

◆ ProductInfoIterator() [2/2]

zypp::Repository::ProductInfoIterator::ProductInfoIterator ( sat::SolvAttr  attr_r,
Repository  repo_r 

Hide ctor as just a limited set of attributes is valid.

Definition at line 435 of file

Member Function Documentation

◆ label()

std::string zypp::Repository::ProductInfoIterator::label ( ) const

Product label.

Definition at line 438 of file

◆ cpeId()

CpeId zypp::Repository::ProductInfoIterator::cpeId ( ) const

The Common Platform Enumeration name for this product.

Definition at line 441 of file

◆ dereference()

int zypp::Repository::ProductInfoIterator::dereference ( ) const

Definition at line 396 of file Repository.h.

Friends And Related Function Documentation

◆ Repository

friend class Repository

Definition at line 390 of file Repository.h.

◆ boost::iterator_core_access

friend class boost::iterator_core_access

Definition at line 395 of file Repository.h.

The documentation for this class was generated from the following files:
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Definition: Easy.h:28