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