12#include "MantidPythonInterface/core/DllConfig.h"
18#include <boost/python/object.hpp>
56 unsigned int const direction = Direction::Input)
65 unsigned int const direction = Direction::Input)
75 unsigned int const direction = Direction::Input)
95 unsigned int const direction = Direction::Input)
105 using BaseClass::operator=;
107 std::string getDefault()
const override;
109 std::string setValue(std::string
const &
value)
override;
110 std::string setValueFromJson(Json::Value
const &
value)
override;
111 std::string setDataItem(std::shared_ptr<Kernel::DataItem>
const &
value)
override;
112 bool isDefault()
const override;
double value
The value of the point.
double obj
the value of the quadratic function
NullValidator is a validator that doesn't.
The concrete, templated class for properties.
PythonObjectProperty(std::string const &name, PythonObject const &defaultValue, unsigned int const direction=Direction::Input)
Constructor that's useful for output properties or inputs with non-None default and no validator.
PythonObjectProperty(std::string const &name, std::string const &strvalue, IValidator_sptr const &validator=std::make_shared< NullValidator >(), unsigned int const direction=Direction::Input)
Constructor from which you can set the property's values through a string:
PythonObjectProperty(std::string const &name, PythonObject const &defaultValue, IValidator_sptr const &validator=std::make_shared< NullValidator >(), unsigned int const direction=Direction::Input)
Constructor.
PythonObjectProperty()=delete
No default constructor.
PythonObjectProperty(PythonObjectProperty const &other)
Copy constructor.
PythonObjectProperty * clone() const override
This is required by Property interface.
PythonObjectProperty(std::string const &name, unsigned int const direction=Direction::Input)
Constructor that's useful for output properties or inputs with default value None and no validator.
PythonObjectProperty(std::string const &name, IValidator_sptr const &validator, unsigned int const direction=Direction::Input)
Constructor Will lead to the property having default value of None.
boost::python::object PythonObject
MANTID_PYTHONINTERFACE_CORE_EXTERN_TEMPLATE(PropertyWithValue< PythonObject >)
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Describes the direction (within an algorithm) of a Property.