libzypp  13.10.6
zypp::pool::PoolImpl Class Reference

#include <PoolImpl.h>

Public Types

typedef PoolTraits::ItemContainerT ContainerT
 
typedef PoolTraits::size_type size_type
 
typedef PoolTraits::const_iterator const_iterator
 
typedef PoolTraits::Id2ItemT Id2ItemT
 
typedef
PoolTraits::repository_iterator 
repository_iterator
 
typedef sat::detail::SolvableIdType SolvableIdType
 
typedef PoolTraits::HardLockQueries HardLockQueries
 
typedef
PoolTraits::hardLockQueries_iterator 
hardLockQueries_iterator
 
typedef PoolTraits::AutoSoftLocks AutoSoftLocks
 
typedef
PoolTraits::autoSoftLocks_iterator 
autoSoftLocks_iterator
 

Public Member Functions

 PoolImpl ()
 Default ctor. More...
 
 ~PoolImpl ()
 Dtor. More...
 
const sat::Pool satpool () const
 convenience. More...
 
const SerialNumberserial () const
 Housekeeping data serial number. More...
 
bool empty () const
 
size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 
PoolItem find (const sat::Solvable &slv_r) const
 Return the corresponding PoolItem. More...
 
ResPoolProxy proxy (ResPool self) const
 
size_type knownRepositoriesSize () const
 Forward list of Repositories that contribute ResObjects from sat::Pool. More...
 
repository_iterator knownRepositoriesBegin () const
 
repository_iterator knownRepositoriesEnd () const
 
Repository reposFind (const std::string &alias_r) const
 
const HardLockQuerieshardLockQueries () const
 
void reapplyHardLocks () const
 
void setHardLockQueries (const HardLockQueries &newLocks_r)
 
bool getHardLockQueries (HardLockQueries &activeLocks_r)
 
const AutoSoftLocksautoSoftLocks () const
 
bool autoSoftLockAppliesTo (sat::Solvable solv_r) const
 
void setAutoSoftLocks (const AutoSoftLocks &newLocks_r)
 
void getActiveSoftLocks (AutoSoftLocks &activeLocks_r)
 
const ContainerTstore () const
 
const Id2ItemTid2item () const
 
Save and restore state.
void SaveState (const ResObject::Kind &kind_r)
 
void RestoreState (const ResObject::Kind &kind_r)
 

Private Member Functions

void checkSerial () const
 
void invalidate () const
 

Private Attributes

SerialNumberWatcher _watcher
 Watch sat pools serial number. More...
 
ContainerT _store
 
DefaultIntegral< bool, true > _storeDirty
 
Id2ItemT _id2item
 
DefaultIntegral< bool, true > _id2itemDirty
 
shared_ptr< ResPoolProxy_poolProxy
 
AutoSoftLocks _autoSoftLocks
 Set of solvable idents that should be soft locked per default. More...
 
HardLockQueries _hardLockQueries
 Set of queries that define hardlocks. More...
 

Friends

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

Detailed Description

Definition at line 116 of file PoolImpl.h.

Member Typedef Documentation

Constructor & Destructor Documentation

zypp::pool::PoolImpl::PoolImpl ( )

Default ctor.

Definition at line 38 of file PoolImpl.cc.

zypp::pool::PoolImpl::~PoolImpl ( )

Dtor.

Definition at line 46 of file PoolImpl.cc.

Member Function Documentation

const sat::Pool zypp::pool::PoolImpl::satpool ( ) const
inline

convenience.

Definition at line 139 of file PoolImpl.h.

const SerialNumber& zypp::pool::PoolImpl::serial ( ) const
inline

Housekeeping data serial number.

Definition at line 143 of file PoolImpl.h.

bool zypp::pool::PoolImpl::empty ( ) const
inline

Definition at line 151 of file PoolImpl.h.

size_type zypp::pool::PoolImpl::size ( ) const
inline

Definition at line 155 of file PoolImpl.h.

const_iterator zypp::pool::PoolImpl::begin ( ) const
inline

Definition at line 158 of file PoolImpl.h.

const_iterator zypp::pool::PoolImpl::end ( ) const
inline

Definition at line 161 of file PoolImpl.h.

PoolItem zypp::pool::PoolImpl::find ( const sat::Solvable slv_r) const
inline

Return the corresponding PoolItem.

Pool and sat pool should be in sync. Returns an empty PoolItem if there is no corresponding PoolItem.

See Also
PoolItem::satSolvable.

Definition at line 170 of file PoolImpl.h.

void zypp::pool::PoolImpl::SaveState ( const ResObject::Kind kind_r)
void zypp::pool::PoolImpl::RestoreState ( const ResObject::Kind kind_r)
ResPoolProxy zypp::pool::PoolImpl::proxy ( ResPool  self) const
inline

Definition at line 191 of file PoolImpl.h.

size_type zypp::pool::PoolImpl::knownRepositoriesSize ( ) const
inline

Forward list of Repositories that contribute ResObjects from sat::Pool.

Definition at line 203 of file PoolImpl.h.

repository_iterator zypp::pool::PoolImpl::knownRepositoriesBegin ( ) const
inline

Definition at line 206 of file PoolImpl.h.

repository_iterator zypp::pool::PoolImpl::knownRepositoriesEnd ( ) const
inline

Definition at line 209 of file PoolImpl.h.

Repository zypp::pool::PoolImpl::reposFind ( const std::string &  alias_r) const
inline

Definition at line 212 of file PoolImpl.h.

const HardLockQueries& zypp::pool::PoolImpl::hardLockQueries ( ) const
inline

Definition at line 222 of file PoolImpl.h.

void zypp::pool::PoolImpl::reapplyHardLocks ( ) const
inline

Definition at line 225 of file PoolImpl.h.

void zypp::pool::PoolImpl::setHardLockQueries ( const HardLockQueries newLocks_r)
inline

Definition at line 244 of file PoolImpl.h.

bool zypp::pool::PoolImpl::getHardLockQueries ( HardLockQueries activeLocks_r)
inline

Definition at line 261 of file PoolImpl.h.

const AutoSoftLocks& zypp::pool::PoolImpl::autoSoftLocks ( ) const
inline

Definition at line 305 of file PoolImpl.h.

bool zypp::pool::PoolImpl::autoSoftLockAppliesTo ( sat::Solvable  solv_r) const
inline

Definition at line 308 of file PoolImpl.h.

void zypp::pool::PoolImpl::setAutoSoftLocks ( const AutoSoftLocks newLocks_r)
inline

Definition at line 311 of file PoolImpl.h.

void zypp::pool::PoolImpl::getActiveSoftLocks ( AutoSoftLocks activeLocks_r)
inline

Definition at line 328 of file PoolImpl.h.

const ContainerT& zypp::pool::PoolImpl::store ( ) const
inline

Definition at line 367 of file PoolImpl.h.

const Id2ItemT& zypp::pool::PoolImpl::id2item ( ) const
inline

Definition at line 428 of file PoolImpl.h.

void zypp::pool::PoolImpl::checkSerial ( ) const
inlineprivate

Definition at line 453 of file PoolImpl.h.

void zypp::pool::PoolImpl::invalidate ( ) const
inlineprivate

Definition at line 460 of file PoolImpl.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const PoolImpl obj 
)
friend

Member Data Documentation

SerialNumberWatcher zypp::pool::PoolImpl::_watcher
private

Watch sat pools serial number.

Definition at line 470 of file PoolImpl.h.

ContainerT zypp::pool::PoolImpl::_store
mutableprivate

Definition at line 471 of file PoolImpl.h.

DefaultIntegral<bool,true> zypp::pool::PoolImpl::_storeDirty
mutableprivate

Definition at line 472 of file PoolImpl.h.

Id2ItemT zypp::pool::PoolImpl::_id2item
mutableprivate

Definition at line 473 of file PoolImpl.h.

DefaultIntegral<bool,true> zypp::pool::PoolImpl::_id2itemDirty
mutableprivate

Definition at line 474 of file PoolImpl.h.

shared_ptr<ResPoolProxy> zypp::pool::PoolImpl::_poolProxy
mutableprivate

Definition at line 477 of file PoolImpl.h.

AutoSoftLocks zypp::pool::PoolImpl::_autoSoftLocks
private

Set of solvable idents that should be soft locked per default.

Definition at line 481 of file PoolImpl.h.

HardLockQueries zypp::pool::PoolImpl::_hardLockQueries
private

Set of queries that define hardlocks.

Definition at line 483 of file PoolImpl.h.


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