Deepsolver
Public Types | Public Member Functions
Deepsolver::RpmInstalledPkgIterator Class Reference

The iterator over set of installed packages. More...

Inheritance diagram for Deepsolver::RpmInstalledPkgIterator:
Deepsolver::AbstractInstalledPkgIterator

List of all members.

Public Types

typedef std::shared_ptr
< RpmInstalledPkgIterator
Ptr

Public Member Functions

bool moveNext (Pkg &pkg)
 Goes to next installed package and fills data associated with it.
void openEnum ()
 RpmInstalledPkgIterator ()
 The default constructor.
virtual ~RpmInstalledPkgIterator ()
 The destructor.

Detailed Description

This iterator reads the rpmdb database and provides information about each installed package. This class instance should not be created directly, use methods of AbstractPackageBackEnd class.

See also:
AbstractPackageBackEnd RpmBackEnd

Member Function Documentation

bool RpmInstalledPkgIterator::moveNext ( Pkg pkg) [virtual]

After creation the iterator is pointed before the first element. Each invocation of this method changes position to next package if there is any and fills necessary data. If there is no next package (including the case there are no packages at all) this method returns zero.

Parameters:
[out]pkgThe Pkg class instance to received data
Returns:
Non-zero if there is the next package or zero otherwise (including the case there are no packages at all)

Implements Deepsolver::AbstractInstalledPkgIterator.