Class Scine::Utils::UniversalSettings::IntListDescriptor¶
-
class
IntListDescriptor
: public Scine::Utils::UniversalSettings::SettingDescriptor¶ SettingDescriptor for a list of integer values.
Public Functions
-
IntListDescriptor
(std::string propertyDescription)¶ Constructor.
- Parameters
propertyDescription
: A string describing what the list of integers is for
-
std::unique_ptr<SettingDescriptor>
clone
() const¶ Create a heap-allocated base pointer copy of this instance.
- Return
A heap-allocated copy of this instance
-
GenericValue
getDefaultGenericValue
() const¶ Creates a type-erased representation of the setting’s default value.
- Return
A type-erased representation of the setting’s default value
-
bool
validValue
(const GenericValue &v) const¶ Checks if a particular type-erased representation of a setting is a valid value for this kind of setting.
- Return
Whether the type-erased representation is a valid value for this kind of setting
- Parameters
v
: A type-erased setting representation
-
IntListDescriptor::IntList
getDefaultValue
() const¶ Get the default list of integers.
-
int
getDefaultItemValue
() const¶ Returns the default value for an item in the integer list.
-
void
setDefaultItemValue
(int def)¶ Set the default value for each item in the integer list.
-
int
getItemMinimum
() const¶ Returns the lower bound for each value in the integer list.
-
void
setItemMinimum
(int min)¶ Set the lower bound for each value in the integer list.
-
int
getItemMaximum
() const¶ Returns the upper bound for each value in the integer list.
-
void
setItemMaximum
(int max)¶ Set the upper bound for each value in the integer list.
-