Flox Package Database 1
CRUD Operations on Nix Package Metadata
|
Preferences associated with a registry input. More...
#include <registry.hh>
Public Member Functions | |
InputPreferences (const InputPreferences &)=default | |
InputPreferences (InputPreferences &&)=default | |
InputPreferences & | operator= (const InputPreferences &)=default |
InputPreferences & | operator= (InputPreferences &&)=default |
InputPreferences (const std::optional< std::vector< Subtree > > &subtrees) | |
virtual void | clear () |
Reset to default state. | |
pkgdb::PkgQueryArgs & | fillPkgQueryArgs (pkgdb::PkgQueryArgs &pqa) const |
Fill a flox::pkgdb::PkgQueryArgs struct with preferences to lookup packages filtered by InputPreferences requirements. | |
void | merge (const InputPreferences &overrides) |
Merges this flox::InputPreferences with another InputPreferences, overriding values in this InputPreferences with those from the other InputPreferences. | |
bool | operator== (const InputPreferences &other) const |
bool | operator!= (const InputPreferences &other) const |
Public Attributes | |
std::optional< std::vector< Subtree > > | subtrees |
Preferences associated with a registry input.
pkgdb::PkgQueryArgs & flox::InputPreferences::fillPkgQueryArgs | ( | pkgdb::PkgQueryArgs & | pqa | ) | const |
Fill a flox::pkgdb::PkgQueryArgs struct with preferences to lookup packages filtered by InputPreferences requirements.
NOTE: This DOES NOT clear pqa before filling it. This is intended to be used after filling pqa with global preferences.
pqa | A set of query args to fill with preferences. |
void flox::InputPreferences::merge | ( | const InputPreferences & | overrides | ) |
Merges this flox::InputPreferences with another InputPreferences, overriding values in this InputPreferences with those from the other InputPreferences.
overrides | A flox::InputPreferences to merge and override with. |
std::optional<std::vector<Subtree> > flox::InputPreferences::subtrees |
Ordered list of subtrees to be searched. Results will be grouped by subtree in the order they appear here.