#include <librpmDb.h>
Public Member Functions | |
| db_const_iterator (constlibrpmDbPtr dbptr_r=0) | |
| ~db_const_iterator () | |
| PMError | dbError () const |
| void | operator++ () |
| unsigned | dbHdrNum () const |
| const constRpmHeaderPtr & | operator * () const |
| const constRpmHeaderPtr & | operator-> () const |
| bool | findAll () |
| bool | findByFile (const std::string &file_r) |
| bool | findByProvides (const std::string &tag_r) |
| bool | findByRequiredBy (const std::string &tag_r) |
| bool | findByConflicts (const std::string &tag_r) |
| bool | findByName (const PkgName &name_r) |
| bool | findPackage (const PkgName &name_r) |
| bool | findPackage (const PkgName &name_r, const PkgEdition &ed_r) |
| bool | findPackage (const PkgNameEd &which_r) |
| bool | findPackage (const constPMPackagePtr &which_r) |
Private Member Functions | |
| db_const_iterator & | operator= (const db_const_iterator &) |
| db_const_iterator (const db_const_iterator &) | |
Private Attributes | |
| D & | _d |
Friends | |
| class | librpmDb |
| std::ostream & | operator<< (std::ostream &str, const db_const_iterator &obj) |
Classes | |
| class | D |
|
|
|
|
|
Constructor. Iterator is initialized to findAll. The default form accesses librpmDb's default database. Explicitly providing a database handle should not be neccesary, except for testing. |
|
|
Destructor. |
|
|
Return any database error. NOTE: If the database gets blocked (see dbRelease) dbError will immediately report this, but an already running iteration will proceed to its end. Then the database is dropped. |
|
|
Returns the current headers index in database, 0 if no header. |
|
|
Reset to iterate all packages. Returns true if iterator contains at least one entry. NOTE: No entry (false) migt be returned due to a meanwhile blocked database (see dbRelease). Use dbError to check this. |
|
|
Reset to iterate all packages that conflict with a certain tag. |
|
|
Reset to iterate all packages that own a certain file. |
|
|
Reset to iterate all packages with a certain name. NOTE: Multiple entries for one package installed in different versions are possible but not desired. Usually you'll want to use findPackage instead. findByName is needed to retrieve pseudo packages like 'gpg-pubkey', which in fact exist in multiple instances. |
|
|
Reset to iterate all packages that provide a certain tag. |
|
|
Reset to iterate all packages that require a certain tag. |
|
|
Abbr. for |
|
|
Abbr. for |
|
||||||||||||
|
Find package by name and edition. Commonly used by PMRpmPackageDataProvider. |
|
|
Find package by name. Multiple entries for one package installed in different versions are possible but not desired. If so, the last package installed is returned. |
|
|
Returns the current constRpmHeaderPtr or NULL, if no more entries available. |
|
|
Advance to next constRpmHeaderPtr. |
|
|
Forwards to the current constRpmHeaderPtr. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
1.4.4