35 LockList::size_type
size()
const;
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Access to the sat-pools string space.
void removeEmpty()
Call callback for each empty lock.
void apply() const
Applies locks in stable list (locks which is not changed during session).
void merge()
Merges toAdd and ToRemove list to stable list.
void save(const Pathname &file=ZConfig::instance().locksFile())
Merges toAdd and ToRemove list to stable list and save that stable list to file.
const_iterator end() const
void addLock(const PoolQuery &query)
TODO add: toBeAdded{Begin,End,Size,Empty} toBeRemoved{Begin,End,Size,Empty}.
std::list< PoolQuery > LockList
LockList::size_type size_type
void readAndApply(const Pathname &file=ZConfig::instance().locksFile())
Optimalized version of read and apply.
void removeDuplicates()
Delete all query duplicate in loaded locks.
const_iterator begin() const
LockList::size_type size() const
void removeLock(const PoolQuery &query)
unlocks by result of query and add to toRemove.
LockList::const_iterator const_iterator
bool existEmpty() const
Gets true if some lock doesn't lock any object in pool This can happen e.g.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
static Locks & instance()
Gets instance of this class.
void read(const Pathname &file=ZConfig::instance().locksFile())
Read locks from file to list of stable locks (locks which is not changed during session)
static ZConfig & instance()
Singleton ctor.
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Wrapper for const correct access via Smart pointer types.