ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::UserSettingsImpl Class Reference
Collaboration diagram for luci::UserSettingsImpl:

Public Member Functions

void set (const Key key, bool value) override
 
bool get (const Key key) const override
 

Additional Inherited Members

Detailed Description

Definition at line 24 of file UserSettings.cpp.

Member Function Documentation

◆ get()

bool luci::UserSettingsImpl::get ( const Key  key) const
overridevirtual

Implements luci::UserSettings.

Definition at line 59 of file UserSettings.cpp.

60{
61 switch (key)
62 {
64 return _MuteWarnings;
66 return _DisableValidation;
68 return _ProfilingDataGen;
70 return _ExecutionPlanGen;
71 default:
72 throw std::runtime_error("Invalid key in boolean get");
73 break;
74 }
75 return false;
76}

References luci::UserSettings::DisableValidation, luci::UserSettings::ExecutionPlanGen, luci::UserSettings::MuteWarnings, and luci::UserSettings::ProfilingDataGen.

◆ set()

void luci::UserSettingsImpl::set ( const Key  key,
bool  value 
)
overridevirtual

Implements luci::UserSettings.

Definition at line 37 of file UserSettings.cpp.

38{
39 switch (key)
40 {
42 _MuteWarnings = value;
43 break;
45 _DisableValidation = value;
46 break;
48 _ProfilingDataGen = value;
49 break;
51 _ExecutionPlanGen = value;
52 break;
53 default:
54 throw std::runtime_error("Invalid key in boolean set");
55 break;
56 }
57}

References luci::UserSettings::DisableValidation, luci::UserSettings::ExecutionPlanGen, luci::UserSettings::MuteWarnings, and luci::UserSettings::ProfilingDataGen.


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