LibPkg
|
A class that filters the binary control table to create a list of the packages available in the current environment. More...
#include <env_packages_table.h>
Classes | |
struct | best |
Public Types | |
typedef std::string | key_type |
typedef best | mapped_type |
typedef std::map< key_type, mapped_type >::const_iterator | const_iterator |
Public Member Functions | |
env_packages_table (binary_control_table *control) | |
virtual | ~env_packages_table () |
const_iterator | begin () const |
Get const iterator for start of table. More... | |
const_iterator | end () const |
Get const iterator for end of table. More... | |
const_iterator | find (const std::string &pkgname) const |
Find a package in the list. More... | |
const binary_control & | control (const std::string &pkgname) const |
Get the control record for the "best" package for the environment. More... | |
const best & | operator[] (const std::string &pkgname) const |
Get information on the "best" package for the environment. More... | |
![]() | |
table () | |
Construct table. More... | |
virtual | ~table () |
Destroy table. More... | |
Additional Inherited Members | |
![]() | |
void | notify () |
Notify watchers that a change has occurred. More... | |
A class that filters the binary control table to create a list of the packages available in the current environment.
It also records the latest version with the highest install priority to give the "best" version to install.
typedef std::string pkg::env_packages_table::key_type |
typedef std::map<key_type,mapped_type>::const_iterator pkg::env_packages_table::const_iterator |
pkg::env_packages_table::env_packages_table | ( | binary_control_table * | control | ) |
|
virtual |
|
inline |
Get const iterator for start of table.
|
inline |
Get const iterator for end of table.
Referenced by control(), and operator[]().
|
inline |
Find a package in the list.
References control(), and operator[]().
Referenced by control(), pkg::pkgbase::fix_dependencies(), operator[](), and pkg::pkgbase::remove_auto().
const binary_control & pkg::env_packages_table::control | ( | const std::string & | pkgname | ) | const |
const env_packages_table::best & pkg::env_packages_table::operator[] | ( | const std::string & | pkgname | ) | const |
Get information on the "best" package for the environment.
References pkg::pkg_env::available(), end(), pkg::binary_control::environment_id(), find(), pkg::binary_control::install_priority(), pkg::table::notify(), pkg::binary_control::package_env(), and pkg::control::version().
Referenced by find().
Reference Manual | LibPkg | Version 0.9.0 (4 Sep 2020) |