libzypp  17.8.0
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
 

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 ContainerTstore () const
 
const Id2ItemTid2item () const
 
Save and restore state.
void SaveState (const ResKind &kind_r)
 
void RestoreState (const ResKind &kind_r)
 

Private Member Functions

void checkSerial () const
 
void invalidate () const
 

Private Attributes

SerialNumberWatcher _watcher
 Watch sat pools serial number. More...
 
SerialNumberWatcher _watcherIDs
 Watch sat pools Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate it's PoolItems! More...
 
ContainerT _store
 
DefaultIntegral< bool, true > _storeDirty
 
Id2ItemT _id2item
 
DefaultIntegral< bool, true > _id2itemDirty
 
shared_ptr< ResPoolProxy_poolProxy
 
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

◆ ContainerT

◆ size_type

◆ const_iterator

◆ Id2ItemT

◆ repository_iterator

◆ SolvableIdType

◆ HardLockQueries

◆ hardLockQueries_iterator

Constructor & Destructor Documentation

◆ PoolImpl()

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

Default ctor.

Definition at line 38 of file PoolImpl.cc.

◆ ~PoolImpl()

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

Dtor.

Definition at line 46 of file PoolImpl.cc.

Member Function Documentation

◆ satpool()

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

convenience.

Definition at line 139 of file PoolImpl.h.

◆ serial()

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

Housekeeping data serial number.

Definition at line 143 of file PoolImpl.h.

◆ empty()

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

Definition at line 151 of file PoolImpl.h.

◆ size()

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

Definition at line 155 of file PoolImpl.h.

◆ begin()

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

Definition at line 158 of file PoolImpl.h.

◆ end()

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

Definition at line 161 of file PoolImpl.h.

◆ find()

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.

◆ SaveState()

void zypp::pool::PoolImpl::SaveState ( const ResKind kind_r)

◆ RestoreState()

void zypp::pool::PoolImpl::RestoreState ( const ResKind kind_r)

◆ proxy()

ResPoolProxy zypp::pool::PoolImpl::proxy ( ResPool  self) const
inline

Definition at line 191 of file PoolImpl.h.

◆ knownRepositoriesSize()

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.

◆ knownRepositoriesBegin()

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

Definition at line 206 of file PoolImpl.h.

◆ knownRepositoriesEnd()

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

Definition at line 209 of file PoolImpl.h.

◆ reposFind()

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

Definition at line 212 of file PoolImpl.h.

◆ hardLockQueries()

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

Definition at line 222 of file PoolImpl.h.

◆ reapplyHardLocks()

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

Definition at line 225 of file PoolImpl.h.

◆ setHardLockQueries()

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

Definition at line 244 of file PoolImpl.h.

◆ getHardLockQueries()

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

Definition at line 261 of file PoolImpl.h.

◆ store()

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

Definition at line 302 of file PoolImpl.h.

◆ id2item()

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

Definition at line 359 of file PoolImpl.h.

◆ checkSerial()

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

Definition at line 384 of file PoolImpl.h.

◆ invalidate()

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

Definition at line 391 of file PoolImpl.h.

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ _watcher

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

Watch sat pools serial number.

Definition at line 401 of file PoolImpl.h.

◆ _watcherIDs

SerialNumberWatcher zypp::pool::PoolImpl::_watcherIDs
private

Watch sat pools Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate it's PoolItems!

Definition at line 403 of file PoolImpl.h.

◆ _store

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

Definition at line 404 of file PoolImpl.h.

◆ _storeDirty

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

Definition at line 405 of file PoolImpl.h.

◆ _id2item

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

Definition at line 406 of file PoolImpl.h.

◆ _id2itemDirty

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

Definition at line 407 of file PoolImpl.h.

◆ _poolProxy

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

Definition at line 410 of file PoolImpl.h.

◆ _hardLockQueries

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

Set of queries that define hardlocks.

Definition at line 414 of file PoolImpl.h.


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