libzypp  9.1.2
Public Member Functions | Public Attributes | Private Member Functions
zypp::target::rpm::librpmDb::db_const_iterator::D Class Reference

List of all members.

Public Member Functions

 D (librpmDb::constPtr dbptr_r)
 ~D ()
bool create (int rpmtag, const void *keyp=NULL, size_t keylen=0)
 Let iterator access a dbindex file.
bool destroy ()
 Destroy iterator.
bool advance ()
 Advance to the first/next header in iterator.
bool init (int rpmtag, const void *keyp=NULL, size_t keylen=0)
 Access a dbindex file and advance to the 1st header.
bool set (int off_r)
 Create an itertator that contains the database entry located at off_r, and advance to the 1st header.
unsigned offset ()
int size ()

Public Attributes

librpmDb::constPtr _dbptr
shared_ptr< RpmException_dberr
RpmHeader::constPtr _hptr
rpmdbMatchIterator _mi

Private Member Functions

Doperator= (const D &)
 D (const D &)

Detailed Description

Definition at line 562 of file librpmDb.cc.


Constructor & Destructor Documentation

Definition at line 574 of file librpmDb.cc.

References zypp::target::rpm::librpmDb::dbAccess(), WAR, and ZYPP_CAUGHT.

Definition at line 599 of file librpmDb.cc.


Member Function Documentation

D& zypp::target::rpm::librpmDb::db_const_iterator::D::operator= ( const D ) [private]
bool zypp::target::rpm::librpmDb::db_const_iterator::D::create ( int  rpmtag,
const void *  keyp = NULL,
size_t  keylen = 0 
) [inline]

Let iterator access a dbindex file.

Call advance to access the 1st element (if present).

Definition at line 611 of file librpmDb.cc.

Destroy iterator.

Invalidates _dbptr, if database was blocked meanwile. Always returns false.

Definition at line 624 of file librpmDb.cc.

References WAR.

Advance to the first/next header in iterator.

Destroys iterator if no more headers available.

Definition at line 644 of file librpmDb.cc.

bool zypp::target::rpm::librpmDb::db_const_iterator::D::init ( int  rpmtag,
const void *  keyp = NULL,
size_t  keylen = 0 
) [inline]

Access a dbindex file and advance to the 1st header.

Definition at line 661 of file librpmDb.cc.

Create an itertator that contains the database entry located at off_r, and advance to the 1st header.

Definition at line 672 of file librpmDb.cc.

Definition at line 681 of file librpmDb.cc.

Definition at line 686 of file librpmDb.cc.


Member Data Documentation

Definition at line 568 of file librpmDb.cc.

Definition at line 569 of file librpmDb.cc.

Definition at line 571 of file librpmDb.cc.

Definition at line 572 of file librpmDb.cc.


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