apt: Solver Class Reference

apt 2.9.8 commandline package manager

Classes | Public Types | Public Member Functions | List of all members
Solver Class Reference

## Classes
struct | CompareProviders3
struct | Reason
| Tagged union holding either a package, version, or nothing; representing the reason for installing something. More...
struct | Work
| A single work item. More...

## Public Types
enum class | Decision : uint16_t { NONE , MUST , MUSTNOT }
enum class | Hint : uint16_t { NONE , SHOULD , MAY }

## Public Member Functions
bool | Pop ()
void | Push (Work work)
void | AddWork (Work &&work)
void | RescoreWorkIfNeeded ()
| Solver (pkgCache &Cache, pkgDepCache::Policy &Policy)
bool | Install (pkgCache::PkgIterator Pkg, Reason reason, Group group)
bool | Install (pkgCache::VerIterator Ver, Reason reason, Group group)
bool | Reject (pkgCache::PkgIterator Pkg, Reason reason, Group group)
bool | Reject (pkgCache::VerIterator Ver, Reason reason, Group group)
bool | FromDepCache (pkgDepCache &depcache)
bool | ToDepCache (pkgDepCache &depcache)
bool | Solve ()
std::string | WhyStr (Reason reason)

## Constructor & Destructor Documentation

## ◆ Solver()

Solver | ( | pkgCache & | cache,
|  | pkgDepCache::Policy & | policy
| ) |  |

Todo:
  DEDUP with pkgDepCache.

## Member Function Documentation

## ◆ Pop()

bool Pop | ( |  | ) |

Todo:
  Do not override the hints here.

Todo:
  There should be a reason!

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

- apt-pkg/solver3.h
- apt-pkg/solver3.cc