Class InputVariable¶
Defined in File InputVariable.h
Inheritance Relationships¶
Base Type¶
public Variable(Class Variable)
Derived Type¶
public Solver(Class Solver)
Class Documentation¶
-
class InputVariable : public virtual Variable¶
A derived class specifically for handling input variables used in simulations or models.
This class extends the
Variableclass, providing a structured way to manage input settings, such as parameters for simulations, ensuring that these inputs can be easily modified and retrieved.- Author
G. Zullo
- Author
F. Bastien
Subclassed by Solver
Public Functions
-
inline InputVariable(std::string name, double value)¶
-
inline void setValue(double v)¶
Sets the value of the input variable.
- Parameters:
v – The new value to assign to the input variable.
-
inline double getValue()¶
Retrieves the value of the input variable.
- Returns:
The current value of the input variable.
-
inline InputVariable()¶
Constructor.
-
inline ~InputVariable()¶
Destructor.
Protected Attributes
-
double value¶