The description of a parameter with a default value.
Definition at line 142 of file ParameterCollectionDescriptor.hpp.
Public Member Functions | |
void | addDefault (nlohmann::ordered_json &object) const noexcept override |
Add the default value to the passed JSON object. More... | |
auto | operator= (ParameterDescriptorWithDefault &&) -> ParameterDescriptorWithDefault &=delete |
Move assignment operator. More... | |
auto | operator= (ParameterDescriptorWithDefault const &) -> ParameterDescriptorWithDefault &=delete |
Copy assignment operator. More... | |
ParameterDescriptorWithDefault (dw::core::StringView name, dw::core::StringView typeName, bool isIndex, size_t arraySize, DefaultType defaultValue) | |
Constructor. More... | |
ParameterDescriptorWithDefault (ParameterDescriptorWithDefault &&)=delete | |
Move constructor. More... | |
ParameterDescriptorWithDefault (ParameterDescriptorWithDefault const &)=delete | |
Copy constructor. More... | |
~ParameterDescriptorWithDefault () override=default | |
Destructor. More... | |
![]() | |
virtual void | addDefault (nlohmann::ordered_json &object) const noexcept |
Add the default value to the passed JSON object (only used by ParameterDescriptorWithDefault()). More... | |
size_t | getArraySize () const noexcept |
Get the array size, 0 for non-array parameters. More... | |
dw::core::StringView const & | getName () const noexcept |
Get the parameter name, can be empty for unnamed parameters. More... | |
dw::core::StringView const & | getTypeName () const noexcept |
Get the C++ type name of the parameter. More... | |
bool | isIndex () const noexcept |
Check if parameter is an index. More... | |
ParameterDescriptor & | operator= (ParameterDescriptor &&) &=delete |
Move assignment operator. More... | |
ParameterDescriptor & | operator= (ParameterDescriptor const &) &=delete |
Copy assignment operator. More... | |
ParameterDescriptor (dw::core::StringView const &name, dw::core::StringView const &typeName, const bool isIndex, size_t const arraySize) noexcept | |
Constructor. More... | |
ParameterDescriptor (ParameterDescriptor &&)=delete | |
Move constructor. More... | |
ParameterDescriptor (ParameterDescriptor const &)=delete | |
Copy constructor. More... | |
virtual | ~ParameterDescriptor ()=default |
Destructor. More... | |
|
inline |
Constructor.
Definition at line 147 of file ParameterCollectionDescriptor.hpp.
|
overridedefault |
Destructor.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
inlineoverridevirtualnoexcept |
Add the default value to the passed JSON object.
Reimplemented from dw::framework::ParameterDescriptor.
Definition at line 168 of file ParameterCollectionDescriptor.hpp.
|
delete |
Move assignment operator.
|
delete |
Copy assignment operator.