Deepsolver
|
The abstract interface for every iterator over set of installed packages. More...
Public Member Functions | |
AbstractInstalledPackagesIterator () | |
The default constructor. | |
virtual bool | moveNext (Pkg &pkg)=0 |
Goes to next installed package and fills data associated with it. | |
virtual | ~AbstractInstalledPackagesIterator () |
The destructor. |
This class isolates any engine of particular package library which can be used to read database with installed packages data. It instance can be obtained by methods of AbstractPackageBackEnd class.
virtual bool AbstractInstalledPackagesIterator::moveNext | ( | Pkg & | pkg | ) | [pure 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.
[out] | pkg | The Pkg class instance to received data about next installed package |
Implemented in RpmInstalledPackagesIterator.