apt 3.0.3
commandline package manager
Public Member Functions | Public Attributes | List of all members
Solver::Work Struct Reference

A single work item. More...

#include <apt-pkg/solver3.h>

Collaboration diagram for Solver::Work:
[legend]

Public Member Functions

bool operator< (APT::Solver::Work const &b) const
 
std::string toString (pkgCache &cache) const
 
 Work (const Clause *clause, depth_type depth)
 

Public Attributes

const Clauseclause
 
depth_type depth
 
union { 
 
   Var   choice 
 
   size_t   size {0} 
 
};  
 
bool erased {false}
 

Detailed Description

A single work item.

A work item is a positive dependency that still needs to be resolved. Work is ordered, by depth, length of solutions, and optionality.

The work can always be recalculated from the state by iterating over dependencies of all packages in there, finding solutions to them, and then adding all dependencies not yet resolved to the work queue.


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