Fcitx
|
Represent a Configuration option. More...
#include <fcitx-config/option.h>
Public Types | |
using | value_type = T |
using | constrain_type = Constrain |
using | OptionParametersType = OptionParameters< Constrain, Marshaller, Annotation, T > |
Public Member Functions | |
Option (Configuration *parent, std::string path, std::string description, const T &defaultValue=T(), Constrain constrain=Constrain(), Marshaller marshaller=Marshaller(), Annotation annotation=Annotation()) | |
Option (OptionParametersType params) | |
std::string | typeString () const override |
void | dumpDescription (RawConfig &config) const override |
std::unique_ptr< Configuration > | subConfigSkeleton () const override |
bool | isDefault () const override |
void | reset () override |
const T & | value () const |
const T & | defaultValue () const |
const T & | operator* () const |
const T * | operator-> () const |
template<typename U > | |
bool | setValue (U &&value) |
template<typename Dummy = int, std::enable_if_t<!std::is_same< Constrain, NoConstrain< T >>::value, Dummy > = 0> | |
MutableOption< Option > | mutableValue () |
template<typename Dummy = int, std::enable_if_t< std::is_same< Constrain, NoConstrain< T >>::value, Dummy > = 0> | |
T * | mutableValue () |
void | marshall (RawConfig &config) const override |
bool | unmarshall (const RawConfig &config, bool partial) override |
bool | equalTo (const OptionBase &other) const override |
void | copyFrom (const OptionBase &other) override |
bool | skipDescription () const override |
bool | skipSave () const override |
void | syncDefaultValueToCurrent () override |
auto & | annotation () const |
![]() | |
OptionBase (Configuration *parent, std::string path, std::string description) | |
const std::string & | path () const |
const std::string & | description () const |
bool | operator== (const OptionBase &other) const |
bool | operator!= (const OptionBase &other) const |
Represent a Configuration option.