A move-only, non-owning view of a Pool that guarantees the whatprovides index is valid.
More...
#include <zypp/ng/sat/preparedpool.h>
A move-only, non-owning view of a Pool that guarantees the whatprovides index is valid.
- Obtaining a PreparedPool
- A
PreparedPool is obtainable only as the return value of Pool::prepare(). It cannot be default-constructed or copied.
- Ownership
PreparedPool is non-owning. Destroying it does nothing to the underlying libsolv index — the index lives inside the libsolv ::Pool struct and is managed by the owning Pool.
- Thread safety
PreparedPool is a non-owning view. Concurrent reads are safe as long as the owning Pool is not mutated concurrently.
- Debug invariant
- In debug builds the serial number of the pool is captured at construction. Every query asserts the serial has not changed, catching use-after-invalidate.
Definition at line 50 of file preparedpool.h.
◆ PreparedPool() [1/4]
| zyppng::sat::PreparedPool::PreparedPool |
( |
| ) |
|
|
delete |
◆ PreparedPool() [2/4]
| zyppng::sat::PreparedPool::PreparedPool |
( |
const PreparedPool & | | ) |
|
|
delete |
◆ PreparedPool() [3/4]
| zyppng::sat::PreparedPool::PreparedPool |
( |
PreparedPool && | | ) |
|
|
default |
◆ ~PreparedPool()
| zyppng::sat::PreparedPool::~PreparedPool |
( |
| ) |
|
|
default |
◆ PreparedPool() [4/4]
| zyppng::sat::PreparedPool::PreparedPool |
( |
Pool & | pool_r | ) |
|
|
explicitprivatenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pool()
| Pool & zyppng::sat::PreparedPool::pool |
( |
| ) |
const |
|
inlinenoexcept |
◆ get()
Expert backdoor — raw libsolv pool pointer.
Definition at line 31 of file preparedpool.cc.
◆ whatProvidesCapabilityId()
| unsigned zyppng::sat::PreparedPool::whatProvidesCapabilityId |
( |
detail::IdType | cap_r | ) |
const |
Returns the offset into the internal whatprovidesdata array for cap_r.
Use whatProvidesData to iterate the stored ids.
Definition at line 40 of file preparedpool.cc.
◆ whatProvidesData()
| detail::IdType zyppng::sat::PreparedPool::whatProvidesData |
( |
unsigned | offset_r | ) |
const |
◆ whatMatchesDep()
All solvables whose attribute attr_r matches dependency cap_r.
Definition at line 50 of file preparedpool.cc.
◆ whatMatchesSolvable()
| Queue zyppng::sat::PreparedPool::whatMatchesSolvable |
( |
const SolvAttr & | attr, |
|
|
const Solvable & | solv ) const |
All solvables whose attribute attr_r matches solvable solv_r.
Definition at line 57 of file preparedpool.cc.
◆ whatContainsDep()
All solvables whose attribute attr_r contains dependency cap_r.
Definition at line 64 of file preparedpool.cc.
◆ Pool
◆ _pool
| Pool& zyppng::sat::PreparedPool::_pool |
|
private |
◆ _serialWatcher
The documentation for this class was generated from the following files: