|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
Concrete class for a matching variable. More...
#include <ConcreteVar.h>


Public Member Functions | |
| ConcreteVar (const std::string &name, Attribute &data, int limits, double pars[4]) | |
| Constructor. More... | |
| virtual | ~ConcreteVar () |
| virtual double | getInternalValue () const |
| Get the current internal parameter value. More... | |
| virtual void | setInternalValue (double) |
| Set the current internal parameter value. More... | |
| virtual double | getExternalValue () const |
| Get the current external parameter value. More... | |
| virtual void | setExternalValue (double) |
| Set the current external parameter value. More... | |
| virtual void | print (std::ostream &) const |
| Print the variable name and value. More... | |
Public Member Functions inherited from AbstractVar | |
| AbstractVar (const std::string &name) | |
| Constructor. More... | |
| virtual | ~AbstractVar () |
| virtual const std::string & | getName () const |
| Get the variable name. More... | |
Private Member Functions | |
| ConcreteVar () | |
| ConcreteVar (const ConcreteVar &) | |
| void | operator= (const ConcreteVar &) |
Private Attributes | |
| Attribute | itsAttr |
| double | itsStep |
| int | itsLimits |
| double | itsMin |
| double | itsMax |
Additional Inherited Members | |
Protected Attributes inherited from AbstractVar | |
| const std::string | itsName |
| Name of the variable. More... | |
Concrete class for a matching variable.
Definition at line 33 of file ConcreteVar.h.
| ConcreteVar::ConcreteVar | ( | const std::string & | name, |
| Attribute & | data, | ||
| int | limits, | ||
| double | pars[4] | ||
| ) |
Constructor.
Definition at line 37 of file ConcreteVar.cpp.
References BOTH_LIMITS, LOWER_LIMIT, sqrt(), and UPPER_LIMIT.

|
virtual |
Definition at line 65 of file ConcreteVar.cpp.
|
private |
|
private |
|
virtual |
Get the current external parameter value.
Implements AbstractVar.
Definition at line 110 of file ConcreteVar.cpp.
References Attributes::getReal(), and itsAttr.
Referenced by print().

|
virtual |
Get the current internal parameter value.
Implements AbstractVar.
Definition at line 69 of file ConcreteVar.cpp.
References asin(), BOTH_LIMITS, Attributes::getReal(), itsAttr, itsLimits, itsMax, itsMin, LOWER_LIMIT, sqrt(), and UPPER_LIMIT.

|
private |
|
virtual |
Print the variable name and value.
Implements AbstractVar.
Definition at line 122 of file ConcreteVar.cpp.
References endl(), getExternalValue(), AbstractVar::itsName, and Inform::precision().

|
virtual |
Set the current external parameter value.
Implements AbstractVar.
Definition at line 115 of file ConcreteVar.cpp.
References OpalData::getInstance(), itsAttr, OpalData::makeDirty(), and Attributes::setReal().
Referenced by setInternalValue().

|
virtual |
Set the current internal parameter value.
Implements AbstractVar.
Definition at line 89 of file ConcreteVar.cpp.
References BOTH_LIMITS, itsLimits, itsMax, itsMin, LOWER_LIMIT, setExternalValue(), sin(), and UPPER_LIMIT.

|
private |
Definition at line 79 of file ConcreteVar.h.
Referenced by getExternalValue(), getInternalValue(), and setExternalValue().
|
private |
Definition at line 85 of file ConcreteVar.h.
Referenced by getInternalValue(), and setInternalValue().
|
private |
Definition at line 87 of file ConcreteVar.h.
Referenced by getInternalValue(), and setInternalValue().
|
private |
Definition at line 86 of file ConcreteVar.h.
Referenced by getInternalValue(), and setInternalValue().
|
private |
Definition at line 82 of file ConcreteVar.h.
1.8.5