◆ GetModifier() [1/2]
Get the modifier for this parameter.
- Returns
- pointer to the parameter modifier, or nullptr if none.
◆ GetModifier() [2/2]
Get the modifier for this parameter (const version).
- Returns
- pointer to the parameter modifier, or nullptr if none.
◆ GetName()
| string Parameter::GetName |
( |
| ) |
const |
|
inline |
Get the name of the parameter.
- Returns
- the name of the parameter.
◆ GetValue()
| float Parameter::GetValue |
( |
| ) |
const |
|
inline |
Get the parameter value.
- Returns
- the parameter value.
◆ GetValuePointer()
| const float * Parameter::GetValuePointer |
( |
| ) |
const |
|
inline |
Get the pointer to the parameter value.
- Returns
- pointer to the parameter value.
◆ HasModifier()
| bool Parameter::HasModifier |
( |
| ) |
const |
|
inline |
Check if this parameter has a modifier.
- Returns
- true if the parameter has a modifier.
◆ IsValid()
| bool Parameter::IsValid |
( |
| ) |
const |
|
nodiscardvirtual |
Check if the parameter is valid. Verifies that the parameter has a name and value.
- Returns
- true if the parameter is valid, false otherwise.
◆ SetModifier()
Set a modifier for this parameter that changes its value over time.
- Parameters
-
| modifier | the parameter modifier. |
◆ SetName()
| void Parameter::SetName |
( |
const string & | name | ) |
|
|
inline |
Set the name of the parameter.
- Parameters
-
| name | the name of the parameter. |
◆ SetValue()
| void Parameter::SetValue |
( |
float | val | ) |
|
|
inline |
Set the parameter value.
- Parameters
-
◆ UpdateFromModifier()
| bool Parameter::UpdateFromModifier |
( |
double | date | ) |
|
Update the parameter value using its modifier.
- Parameters
-
| date | current date in MJD format. |
- Returns
- true if the parameter was updated successfully.
◆ Validate()
| void Parameter::Validate |
( |
| ) |
const |
Validate the parameter. Throws an exception if the parameter is invalid.
- Exceptions
-
The documentation for this class was generated from the following files:
- /github/workspace/core/src/base/Parameter.h
- /github/workspace/core/src/base/Parameter.cpp