Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <berryParameterization.h>
Public Member Functions | |
Parameterization (const SmartPointer< const IParameter > parameter, const QString &value) | |
Parameterization (const Parameterization &p) | |
Parameterization & | operator= (const Parameterization &p) |
bool | operator== (const Parameterization ¶meterization) const |
operator bool () const | |
SmartPointer< const IParameter > | GetParameter () const |
QString | GetValue () const |
QString | GetValueName () const |
uint | HashCode () const |
A parameter with a specific value. This is usually a part of a ParameterizedCommand
, which is used to refer to a command with a collection of parameterizations.
Definition at line 36 of file berryParameterization.h.
berry::Parameterization::Parameterization | ( | const SmartPointer< const IParameter > | parameter, |
const QString & | value | ||
) |
Constructs a new instance of Parameterization
.
parameter | The parameter that is being parameterized; must not be null . |
value | The value for the parameter; may be null . |
Definition at line 24 of file berryParameterization.cpp.
berry::Parameterization::Parameterization | ( | const Parameterization & | p | ) |
Copy constructor
Definition at line 34 of file berryParameterization.cpp.
SmartPointer< const IParameter > berry::Parameterization::GetParameter | ( | ) | const |
Returns the parameter that is being parameterized.
null
. Definition at line 73 of file berryParameterization.cpp.
Referenced by berry::ParameterizedCommand::GetName(), berry::ParameterizedCommand::GetParameterMap(), and berry::ParameterizedCommand::Serialize().
QString berry::Parameterization::GetValue | ( | ) | const |
Returns the value for the parameter in this parameterization.
null
. Definition at line 78 of file berryParameterization.cpp.
Referenced by berry::ParameterizedCommand::GetParameterMap(), and berry::ParameterizedCommand::Serialize().
QString berry::Parameterization::GetValueName | ( | ) | const |
Returns the human-readable name for the current value, if any. If the name cannot be found, then it simply returns the value. It also ensures that any null
values are converted into an empty string.
null
. ParameterValuesException | If the parameter needed to be initialized, but couldn't be. |
Definition at line 83 of file berryParameterization.cpp.
Referenced by berry::ParameterizedCommand::GetName().
uint berry::Parameterization::HashCode | ( | ) | const |
Definition at line 102 of file berryParameterization.cpp.
References qHash().
berry::Parameterization::operator bool | ( | ) | const |
Definition at line 68 of file berryParameterization.cpp.
Parameterization & berry::Parameterization::operator= | ( | const Parameterization & | p | ) |
Definition at line 40 of file berryParameterization.cpp.
bool berry::Parameterization::operator== | ( | const Parameterization & | parameterization | ) | const |
Definition at line 49 of file berryParameterization.cpp.