|
Mantid
|
Templated class for parameters of type Type.
More...
#include <Parameter.h>
Public Member Functions | |
| std::string | asString () const |
| Specialization for doubles. More... | |
| std::string | asString () const |
| Specialization for V3D. More... | |
| std::string | asString () const override |
| Returns the value of the property as a string. More... | |
| Parameter * | clone () const override |
| type-independent clone method; More... | |
| void | fromString (const std::string &value) |
| Specialization for a string. More... | |
| void | fromString (const std::string &value) override |
| Set the value of the property via a string. More... | |
| const Type & | operator() () const |
| Get the value of the parameter. More... | |
| ParameterType () | |
| Constructor. More... | |
| const Type & | value () const |
| Returns the value of the parameter. More... | |
Public Member Functions inherited from Mantid::Geometry::Parameter | |
| virtual std::string | asString () const |
| Returns the value of the property as a string. More... | |
| virtual Parameter * | clone () const =0 |
| type-independent clone method; More... | |
| virtual void | fromString (const std::string &value) |
| Set the value of the property via a string. More... | |
| virtual const std::string & | getDescription () const |
| get description More... | |
| virtual std::string | getShortDescription () const |
| get short description More... | |
| const std::string & | name () const |
| Parameter name. More... | |
| const char * | nameAsCString () const |
| Parameter name. More... | |
| bool | operator== (const Parameter &rhs) const |
| Equality operator. More... | |
| virtual void | setDescription (const std::string &source) |
| set description: More... | |
| virtual void | setVisible (const bool &visible) |
| set visibility: More... | |
| const std::string & | type () const |
| Parameter type. More... | |
| template<class T > | |
| const T & | value () |
| Returns the parameter value of type T if the parameter has type ParameterType<T> More... | |
| const bool & | visible () const |
| Parameter visibility in InstrumentViewer. More... | |
| virtual | ~Parameter ()=default |
| Virtual destructor. More... | |
Private Member Functions | |
| ParameterType & | operator= (const Type &value) |
| Set the value of the parameter via the assignment operator. More... | |
| void | setValue (const Type &value) |
| Set the value of the parameter. More... | |
Private Attributes | |
| Type | m_value |
| Value. More... | |
Friends | |
| class | Parameter |
| class | ParameterMap |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::Geometry::Parameter | |
| Parameter () | |
| Constructor. More... | |
| template<class T > | |
| void | set (const T &t) |
| Sets the value of type T to the parameter if it has type ParameterType<T> Throws an exception if the types don't match. More... | |
Templated class for parameters of type Type.
Definition at line 105 of file Parameter.h.
|
inline |
Constructor.
Definition at line 108 of file Parameter.h.
|
virtual |
Specialization for doubles.
Reimplemented from Mantid::Geometry::Parameter.
Definition at line 37 of file Parameter.cpp.
References m_value.
|
virtual |
Specialization for V3D.
Reimplemented from Mantid::Geometry::Parameter.
Definition at line 45 of file Parameter.cpp.
References m_value.
|
overridevirtual |
Returns the value of the property as a string.
Return the value of the parameter as a string.
| T | The type of the parameter |
Reimplemented from Mantid::Geometry::Parameter.
Definition at line 30 of file Parameter.cpp.
References m_value.
|
inlineoverridevirtual |
type-independent clone method;
Implements Mantid::Geometry::Parameter.
Definition at line 120 of file Parameter.h.
|
inlinevirtual |
Specialization for a string.
Reimplemented from Mantid::Geometry::Parameter.
Definition at line 177 of file Parameter.h.
|
overridevirtual |
Set the value of the property via a string.
Set the value of the parameter from a string.
| T | The type of the parameter |
| value | :: A string representation of the parameter's value |
Reimplemented from Mantid::Geometry::Parameter.
Definition at line 169 of file Parameter.h.
|
inline |
|
private |
Set the value of the parameter via the assignment operator.
| value | :: The value of the parameter |
Definition at line 189 of file Parameter.h.
References value.
|
private |
Set the value of the parameter.
Set the value of the parameter via the assignment operator.
| The | parameter type |
| value | :: The value of the parameter |
Definition at line 183 of file Parameter.h.
|
inline |
|
friend |
Definition at line 124 of file Parameter.h.
|
friend |
Definition at line 123 of file Parameter.h.
|
private |
Value.
Definition at line 130 of file Parameter.h.