zypp::PoolItem::Impl Struct Reference

PoolItem implementation. More...

List of all members.

Public Member Functions

 Impl ()
 Impl (ResObject::constPtr res_r, const ResStatus &status_r)
ResStatusstatus () const
sat::Solvable buddy () const
void setBuddy (sat::Solvable solv_r)
ResObject::constPtr resolvable () const
ResStatusstatusReset () const
bool isUndetermined () const
bool isRelevant () const
bool isSatisfied () const
bool isBroken () const
bool isNeeded () const
bool isUnwanted () const

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Private Attributes

ResStatus _status
ResObject::constPtr _resolvable
DefaultIntegral
< sat::detail::IdType,
sat::detail::noId > 
_buddy

Related Functions

(Note that these are not member functions.)

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

Poor man's save/restore state.

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


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


Detailed Description

PoolItem implementation.

_buddy handling:

Definition at line 37 of file PoolItem.cc.


Constructor & Destructor Documentation

zypp::PoolItem::Impl::Impl (  )  [inline]

Definition at line 40 of file PoolItem.cc.

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

Definition at line 42 of file PoolItem.cc.


Member Function Documentation

ResStatus& zypp::PoolItem::Impl::status (  )  const [inline]

sat::Solvable zypp::PoolItem::Impl::buddy (  )  const [inline]

Definition at line 51 of file PoolItem.cc.

References _buddy, and zypp::sat::Solvable::noSolvable.

Referenced by status().

void zypp::PoolItem::Impl::setBuddy ( sat::Solvable  solv_r  )  [inline]

ResObject::constPtr zypp::PoolItem::Impl::resolvable (  )  const [inline]

Definition at line 62 of file PoolItem.cc.

References _resolvable.

Referenced by operator<<(), and setBuddy().

ResStatus& zypp::PoolItem::Impl::statusReset (  )  const [inline]

bool zypp::PoolItem::Impl::isUndetermined (  )  const [inline]

Definition at line 73 of file PoolItem.cc.

References zypp::ResStatus::isUndetermined(), and status().

bool zypp::PoolItem::Impl::isRelevant (  )  const [inline]

Definition at line 78 of file PoolItem.cc.

References zypp::ResStatus::isNonRelevant(), and status().

bool zypp::PoolItem::Impl::isSatisfied (  )  const [inline]

Definition at line 83 of file PoolItem.cc.

References zypp::ResStatus::isSatisfied(), and status().

bool zypp::PoolItem::Impl::isBroken (  )  const [inline]

Definition at line 88 of file PoolItem.cc.

References zypp::ResStatus::isBroken(), and status().

Referenced by isNeeded(), and isUnwanted().

bool zypp::PoolItem::Impl::isNeeded (  )  const [inline]

bool zypp::PoolItem::Impl::isUnwanted (  )  const [inline]

Definition at line 98 of file PoolItem.cc.

References isBroken(), zypp::ResStatus::isLocked(), and status().

void zypp::PoolItem::Impl::saveState (  )  const [inline]

Definition at line 113 of file PoolItem.cc.

References _savedStatus, and status().

void zypp::PoolItem::Impl::restoreState (  )  const [inline]

Definition at line 115 of file PoolItem.cc.

References _savedStatus, and status().

bool zypp::PoolItem::Impl::sameState (  )  const [inline]

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

Offer default Impl.

Definition at line 137 of file PoolItem.cc.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const PoolItem::Impl obj 
) [related]

Stream output

Definition at line 146 of file PoolItem.cc.

References resolvable(), and status().


Member Data Documentation

Definition at line 104 of file PoolItem.cc.

Referenced by status(), and statusReset().

Definition at line 105 of file PoolItem.cc.

Referenced by resolvable().

Definition at line 106 of file PoolItem.cc.

Referenced by buddy(), setBuddy(), and status().

Definition at line 132 of file PoolItem.cc.

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


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

doxygen