zypp::PoolItem_Ref::Impl Struct Reference

PoolItem_Ref implementation. More...

List of all members.

Poor man's save/restore state.

Todo:
There may be better save/restore state strategies.


void saveState () const
void restoreState () const
bool sameState () const
ResStatus _savedStatus

Public Member Functions

 Impl ()
 Impl (ResObject::constPtr res_r, const ResStatus &status_r=ResStatus())
ResStatusstatus () const
ResStatusstatusReset () const
ResObject::constPtr resolvable () const
bool autoprotect () const

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Private Attributes

ResStatus _status
ResObject::constPtr _resolvable

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const PoolItem_Ref::Impl &obj)


Detailed Description

PoolItem_Ref implementation.

Definition at line 31 of file PoolItem.cc.


Constructor & Destructor Documentation

zypp::PoolItem_Ref::Impl::Impl  )  [inline]
 

Definition at line 33 of file PoolItem.cc.

zypp::PoolItem_Ref::Impl::Impl ResObject::constPtr  res_r,
const ResStatus status_r = ResStatus()
[inline]
 

Definition at line 36 of file PoolItem.cc.

References autoprotect().


Member Function Documentation

ResStatus& zypp::PoolItem_Ref::Impl::status  )  const [inline]
 

Definition at line 44 of file PoolItem.cc.

References _status.

Referenced by operator<<().

ResStatus& zypp::PoolItem_Ref::Impl::statusReset  )  const [inline]
 

Definition at line 47 of file PoolItem.cc.

References _status, autoprotect(), zypp::ResStatus::resetTransact(), zypp::ResStatus::setLock(), and zypp::ResStatus::USER.

ResObject::constPtr zypp::PoolItem_Ref::Impl::resolvable  )  const [inline]
 

Definition at line 57 of file PoolItem.cc.

References _resolvable.

Referenced by operator<<().

bool zypp::PoolItem_Ref::Impl::autoprotect  )  const [inline]
 

Definition at line 109 of file PoolItem.cc.

References _resolvable, _status, zypp::VendorAttr::autoProtect(), zypp::VendorAttr::instance(), zypp::ResStatus::isInstalled(), MIL, zypp::ResStatus::setLock(), and zypp::ResStatus::USER.

Referenced by Impl(), and statusReset().

void zypp::PoolItem_Ref::Impl::saveState  )  const [inline]
 

Definition at line 71 of file PoolItem.cc.

References _savedStatus, and _status.

void zypp::PoolItem_Ref::Impl::restoreState  )  const [inline]
 

Definition at line 73 of file PoolItem.cc.

References _savedStatus, and _status.

bool zypp::PoolItem_Ref::Impl::sameState  )  const [inline]
 

Definition at line 75 of file PoolItem.cc.

References _savedStatus, _status, zypp::ResStatus::getTransactValue(), zypp::ResStatus::isBySolver(), and zypp::ResStatus::isLicenceConfirmed().

static shared_ptr<Impl> zypp::PoolItem_Ref::Impl::nullimpl  )  [inline, static]
 

Offer default Impl.

Definition at line 90 of file PoolItem.cc.


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const PoolItem_Ref::Impl obj
[related]
 

Stream output

Definition at line 99 of file PoolItem.cc.

References resolvable(), and status().


Member Data Documentation

ResStatus zypp::PoolItem_Ref::Impl::_status [mutable, private]
 

Definition at line 63 of file PoolItem.cc.

Referenced by autoprotect(), restoreState(), sameState(), saveState(), status(), and statusReset().

ResObject::constPtr zypp::PoolItem_Ref::Impl::_resolvable [private]
 

Definition at line 64 of file PoolItem.cc.

Referenced by autoprotect(), and resolvable().

ResStatus zypp::PoolItem_Ref::Impl::_savedStatus [mutable, private]
 

Definition at line 85 of file PoolItem.cc.

Referenced by restoreState(), sameState(), and saveState().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:30 2006 for zypp by  doxygen 1.4.6