Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Setting< T > Class Template Reference
Inheritance diagram for nix::Setting< T >:
nix::BaseSetting< T > nix::AbstractSetting

Public Member Functions

 Setting (Config *options, const T &def, const std::string &name, const std::string &description, const std::set< std::string > &aliases={}, const bool documentDefault=true, std::optional< ExperimentalFeature > experimentalFeature=std::nullopt, bool deprecated=false)
Public Member Functions inherited from nix::BaseSetting< T >
 BaseSetting (const T &def, const bool documentDefault, const std::string &name, const std::string &description, const std::set< std::string > &aliases={}, std::optional< ExperimentalFeature > experimentalFeature=std::nullopt, bool deprecated=false)
 operator const T & () const
const T & get () const
template<typename U>
bool operator== (const U &v2) const
template<typename U>
bool operator!= (const U &v2) const
template<typename U>
void setDefault (const U &v)
void set (const std::string &str, bool append=false, const ApplyConfigOptions &options={}) override final
void override (const T &v)
bool isAppendable () override final
std::string to_string () const override
void convertToArg (Args &args, const std::string &category) override
std::map< std::string, JSON > toJSONObject () const override
std::string to_string () const
void convertToArg (Args &args, const std::string &category)
std::string to_string () const
void convertToArg (Args &args, const std::string &category)
void convertToArg (Args &args, const std::string &category)
std::string to_string () const
std::string to_string () const
std::string to_string () const
std::string to_string () const
void convertToArg (Args &args, const std::string &category)
std::string to_string () const
std::string to_string () const
std::string to_string () const
std::string to_string () const
std::string to_string () const

Additional Inherited Members

Public Attributes inherited from nix::AbstractSetting
const std::string name
const std::string description
const std::set< std::string > aliases
int created = 123
bool overridden = false
std::optional< ExperimentalFeatureexperimentalFeature
Protected Member Functions inherited from nix::BaseSetting< T >
virtual T parse (const std::string &str, const ApplyConfigOptions &options) const
virtual void appendOrSet (T newValue, bool append, const ApplyConfigOptions &options)
AcceptFlakeConfig parse (const std::string &str, const ApplyConfigOptions &options) const
SandboxMode parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (Strings newValue, bool append, const ApplyConfigOptions &options)
void appendOrSet (StringSet newValue, bool append, const ApplyConfigOptions &options)
void appendOrSet (StringMap newValue, bool append, const ApplyConfigOptions &options)
void appendOrSet (ExperimentalFeatures newValue, bool append, const ApplyConfigOptions &options)
void appendOrSet (DeprecatedFeatures newValue, bool append, const ApplyConfigOptions &options)
std::string parse (const std::string &str, const ApplyConfigOptions &options) const
std::optional< std::string > parse (const std::string &str, const ApplyConfigOptions &options) const
std::optional< uint16_t > parse (const std::string &str, const ApplyConfigOptions &options) const
bool parse (const std::string &str, const ApplyConfigOptions &options) const
Strings parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (Strings newValue, bool append, const ApplyConfigOptions &options)
StringSet parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (StringSet newValue, bool append, const ApplyConfigOptions &options)
ExperimentalFeatures parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (ExperimentalFeatures newValue, bool append, const ApplyConfigOptions &options)
DeprecatedFeatures parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (DeprecatedFeatures newValue, bool append, const ApplyConfigOptions &options)
StringMap parse (const std::string &str, const ApplyConfigOptions &options) const
void appendOrSet (StringMap newValue, bool append, const ApplyConfigOptions &options)
Protected Member Functions inherited from nix::AbstractSetting
 AbstractSetting (const std::string &name, const std::string &description, const std::set< std::string > &aliases, std::optional< ExperimentalFeature > experimentalFeature=std::nullopt)
JSON toJSON ()
bool isOverridden () const
Protected Attributes inherited from nix::BaseSetting< T >
value
const T defaultValue
const bool documentDefault
const bool deprecated

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