|
libzypp
17.38.7
|
A SolvableSpec that has been evaluated against a specific Pool. More...
#include <zypp/ng/sat/solvablespec.h>
Public Types | |
| using | SolvIdSet = std::unordered_set< detail::SolvableIdType > |
Public Member Functions | |
| EvaluatedSolvableSpec (PreparedPool &pp_r, const SolvableSpec &spec_r) | |
| Construct by evaluating spec_r against pp_r. More... | |
| EvaluatedSolvableSpec (const EvaluatedSolvableSpec &)=default | |
| EvaluatedSolvableSpec (EvaluatedSolvableSpec &&)=default | |
| EvaluatedSolvableSpec & | operator= (const EvaluatedSolvableSpec &)=default |
| EvaluatedSolvableSpec & | operator= (EvaluatedSolvableSpec &&)=default |
| bool | empty () const |
| Whether no solvable matched the spec at construction time. More... | |
| bool | contains (const Solvable &solv_r) const |
| O(1) membership test — no pool access required. More... | |
| const SolvIdSet & | ids () const |
| Direct access to the resolved id set (e.g. More... | |
Private Attributes | |
| SolvIdSet | _ids |
A SolvableSpec that has been evaluated against a specific Pool.
Pool& and immediately resolves the spec into a flat SolvableIdType hash set. Subsequent contains() calls are O(1) with no pool access required.The pool-binding is visible in the type: an EvaluatedSolvableSpec is a snapshot of the pool at construction time. If the pool changes, construct a new instance. There is no setDirty() / lazy-rebuild mechanism by design.
Definition at line 174 of file solvablespec.h.
| using zyppng::sat::EvaluatedSolvableSpec::SolvIdSet = std::unordered_set<detail::SolvableIdType> |
Definition at line 177 of file solvablespec.h.
| zyppng::sat::EvaluatedSolvableSpec::EvaluatedSolvableSpec | ( | PreparedPool & | pp_r, |
| const SolvableSpec & | spec_r | ||
| ) |
Construct by evaluating spec_r against pp_r.
Definition at line 84 of file solvablespec.cc.
|
default |
|
default |
|
default |
|
default |
|
inline |
Whether no solvable matched the spec at construction time.
Definition at line 188 of file solvablespec.h.
O(1) membership test — no pool access required.
Definition at line 116 of file solvablespec.cc.
|
inline |
Direct access to the resolved id set (e.g.
for bulk operations).
Definition at line 195 of file solvablespec.h.
|
private |
Definition at line 199 of file solvablespec.h.