Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
flox::registry_input_factory Concept Reference

Restricts types to those which can construct flox::RegistryInput values. More...

#include <registry.hh>

Concept definition

template<typename T>
requires { typename T::input_type; } &&
requires( T ref, const std::string & name, const RegistryInput & rip ) {
{
ref.mkInput( name, rip )
} -> std::convertible_to<std::shared_ptr<typename T::input_type>>;
}
Restricts types to those which are derived from flox::InputPreferences.
Definition: registry.hh:124
Restricts types to those which can construct flox::RegistryInput values.
Definition: registry.hh:223
Preferences associated with a named registry input.
Definition: registry.hh:135

Detailed Description

Restricts types to those which can construct flox::RegistryInput values.

A flox::registry_input_factory is a type that can construct flox::input_preferences_typename instances.

A flox::registry_input_factory must provide a using input_type = <TYPENAME>; declaration to indicate the type of flox::input_preferences_typename it produces. It must also provide a mkInput function that constructs an instance of the declared input_type from a name and a flox::RegistryInput.

See also
flox::RegistryInputFactory
flox::FloxFlakeInputFactory
flox::pkgdb::PkgDbInputFactory