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 546 of file librpmDb.cc.


Constructor & Destructor Documentation

zypp::target::rpm::librpmDb::db_const_iterator::D::D ( const D  )  [private]

zypp::target::rpm::librpmDb::db_const_iterator::D::D ( librpmDb::constPtr  dbptr_r  )  [inline]

Definition at line 557 of file librpmDb.cc.

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

zypp::target::rpm::librpmDb::db_const_iterator::D::~D (  )  [inline]

Definition at line 577 of file librpmDb.cc.

References _mi.


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 587 of file librpmDb.cc.

References _dbptr, _mi, and destroy().

Referenced by init(), and set().

bool zypp::target::rpm::librpmDb::db_const_iterator::D::destroy (  )  [inline]

Destroy iterator.

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

Definition at line 599 of file librpmDb.cc.

References _dberr, _dbptr, _hptr, _mi, and WAR.

Referenced by advance(), create(), D(), and zypp::target::rpm::librpmDb::db_const_iterator::findPackage().

bool zypp::target::rpm::librpmDb::db_const_iterator::D::advance (  )  [inline]

Advance to the first/next header in iterator.

Destroys iterator if no more headers available.

Definition at line 616 of file librpmDb.cc.

References _hptr, _mi, and destroy().

Referenced by init(), zypp::target::rpm::librpmDb::db_const_iterator::operator++(), and set().

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 631 of file librpmDb.cc.

References advance(), and create().

Referenced by zypp::target::rpm::librpmDb::db_const_iterator::findAll(), zypp::target::rpm::librpmDb::db_const_iterator::findByConflicts(), zypp::target::rpm::librpmDb::db_const_iterator::findByFile(), zypp::target::rpm::librpmDb::db_const_iterator::findByProvides(), zypp::target::rpm::librpmDb::db_const_iterator::findByRequiredBy(), and zypp::target::rpm::librpmDb::db_const_iterator::findPackage().

bool zypp::target::rpm::librpmDb::db_const_iterator::D::set ( int  off_r  )  [inline]

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

Definition at line 641 of file librpmDb.cc.

References _mi, advance(), and create().

Referenced by zypp::target::rpm::librpmDb::db_const_iterator::findPackage().

unsigned zypp::target::rpm::librpmDb::db_const_iterator::D::offset (  )  [inline]

Definition at line 649 of file librpmDb.cc.

References _mi.

Referenced by zypp::target::rpm::librpmDb::db_const_iterator::dbHdrNum(), and zypp::target::rpm::librpmDb::db_const_iterator::findPackage().

int zypp::target::rpm::librpmDb::db_const_iterator::D::size ( void   )  [inline]

Definition at line 653 of file librpmDb.cc.

References _mi.


Member Data Documentation

librpmDb::constPtr zypp::target::rpm::librpmDb::db_const_iterator::D::_dbptr

Definition at line 551 of file librpmDb.cc.

Referenced by create(), D(), zypp::target::rpm::librpmDb::db_const_iterator::dbError(), and destroy().

shared_ptr<RpmException> zypp::target::rpm::librpmDb::db_const_iterator::D::_dberr

Definition at line 552 of file librpmDb.cc.

Referenced by D(), zypp::target::rpm::librpmDb::db_const_iterator::dbError(), and destroy().

RpmHeader::constPtr zypp::target::rpm::librpmDb::db_const_iterator::D::_hptr

Definition at line 554 of file librpmDb.cc.

Referenced by advance(), destroy(), and zypp::target::rpm::librpmDb::db_const_iterator::operator *().

rpmdbMatchIterator zypp::target::rpm::librpmDb::db_const_iterator::D::_mi

Definition at line 555 of file librpmDb.cc.

Referenced by advance(), create(), destroy(), offset(), set(), size(), and ~D().


The documentation for this class was generated from the following file:
Generated on Tue Nov 28 16:49:41 2006 for zypp by  doxygen 1.5.0