libzypp 17.31.23
zypp::pool::PoolImpl Class Reference

#include <pool/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 ResPool::EstablishedStates::Impl EstablishedStatesImpl
 

Public Member Functions

 PoolImpl ()
 Default ctor.
 
 ~PoolImpl ()
 Dtor.
 
const sat::Pool satpool () const
 convenience.
 
const SerialNumberserial () const
 Housekeeping data serial number.
 
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.
 

Friends

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

Save and restore state.

typedef PoolTraits::HardLockQueries HardLockQueries
 
typedef PoolTraits::hardLockQueries_iterator hardLockQueries_iterator
 
SerialNumberWatcher _watcher
 Watch sat pools serial number.
 
SerialNumberWatcher _watcherIDs
 Watch sat pools Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate its PoolItems!
 
ContainerT _store
 
DefaultIntegral< bool, true > _storeDirty
 
Id2ItemT _id2item
 
DefaultIntegral< bool, true > _id2itemDirty
 
shared_ptr< ResPoolProxy_poolProxy
 
shared_ptr< EstablishedStatesImpl_establishedStates
 
HardLockQueries _hardLockQueries
 Set of queries that define hardlocks.
 
void SaveState (const ResKind &kind_r)
 
void RestoreState (const ResKind &kind_r)
 
ResPoolProxy proxy (ResPool self) const
 
ResPool::EstablishedStates establishedStates () const
 True factory for ResPool::EstablishedStates.
 
size_type knownRepositoriesSize () const
 Forward list of Repositories that contribute ResObjects from sat::Pool.
 
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
 
void checkSerial () const
 
void invalidate () const
 

Detailed Description

Definition at line 167 of file PoolImpl.h.

Member Typedef Documentation

◆ ContainerT

◆ size_type

◆ const_iterator

◆ Id2ItemT

◆ repository_iterator

◆ SolvableIdType

◆ EstablishedStatesImpl

◆ HardLockQueries

◆ hardLockQueries_iterator

Constructor & Destructor Documentation

◆ PoolImpl()

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

Default ctor.

Definition at line 44 of file PoolImpl.cc.

◆ ~PoolImpl()

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

Dtor.

Definition at line 52 of file PoolImpl.cc.

Member Function Documentation

◆ satpool()

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

convenience.

Definition at line 192 of file PoolImpl.h.

◆ serial()

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

Housekeeping data serial number.

Definition at line 196 of file PoolImpl.h.

◆ empty()

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

Definition at line 204 of file PoolImpl.h.

◆ size()

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

Definition at line 208 of file PoolImpl.h.

◆ begin()

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

Definition at line 211 of file PoolImpl.h.

◆ end()

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

Definition at line 214 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 223 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 244 of file PoolImpl.h.

◆ establishedStates()

ResPool::EstablishedStates zypp::pool::PoolImpl::establishedStates ( ) const
inline

True factory for ResPool::EstablishedStates.

Internally we maintain the ResPool::EstablishedStates::Impl reference shared_ptr. Updated whenever the pool content changes. On demand hand it out as ResPool::EstablishedStates Impl.

Definition at line 259 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 264 of file PoolImpl.h.

◆ knownRepositoriesBegin()

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

Definition at line 267 of file PoolImpl.h.

◆ knownRepositoriesEnd()

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

Definition at line 270 of file PoolImpl.h.

◆ reposFind()

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

Definition at line 273 of file PoolImpl.h.

◆ hardLockQueries()

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

Definition at line 283 of file PoolImpl.h.

◆ reapplyHardLocks()

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

Definition at line 286 of file PoolImpl.h.

◆ setHardLockQueries()

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

Definition at line 305 of file PoolImpl.h.

◆ getHardLockQueries()

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

Definition at line 322 of file PoolImpl.h.

◆ store()

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

Definition at line 363 of file PoolImpl.h.

◆ id2item()

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

Definition at line 424 of file PoolImpl.h.

◆ checkSerial()

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

Definition at line 449 of file PoolImpl.h.

◆ invalidate()

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

Definition at line 456 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 467 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 its PoolItems!

Definition at line 469 of file PoolImpl.h.

◆ _store

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

Definition at line 470 of file PoolImpl.h.

◆ _storeDirty

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

Definition at line 471 of file PoolImpl.h.

◆ _id2item

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

Definition at line 472 of file PoolImpl.h.

◆ _id2itemDirty

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

Definition at line 473 of file PoolImpl.h.

◆ _poolProxy

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

Definition at line 476 of file PoolImpl.h.

◆ _establishedStates

shared_ptr<EstablishedStatesImpl> zypp::pool::PoolImpl::_establishedStates
mutableprivate

Definition at line 477 of file PoolImpl.h.

◆ _hardLockQueries

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

Set of queries that define hardlocks.

Definition at line 481 of file PoolImpl.h.


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