|
Optika Development
|
#include <Optika_StandardConditions.hpp>


Public Member Functions | |
| NumberCondition (std::string parameterName, Teuchos::RCP< Teuchos::ParameterList > parentList, T(*func)(T)=0, bool whenParamEqualsValue=true) | |
| NumberCondition (std::string parameterName, Teuchos::RCP< Teuchos::ParameterList > parentList, bool whenParamEqualsValue=true) | |
| bool | isConditionTrue () |
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is greater 0. If the parameter is greater than 0 this is interperted as the condition being "true". Otherwise the oncidiont is interperted as false.
| Optika::NumberCondition< T >::NumberCondition | ( | std::string | parameterName, |
| Teuchos::RCP< Teuchos::ParameterList > | parentList, | ||
| T(*)(T) | func = 0, |
||
| bool | whenParamEqualsValue = true |
||
| ) | [inline] |
Constructs a Number Condition.
| parameterName | The name of the parameter to be evaluated. |
| parentList | The parent Parameter List of the parameter to be evaluated. |
| func | A function to run the value of the parameter through. If the function returns a value greater than 0, this will be interperted as the condition being "true". If the function returns a value of 0 or less, this will be interperted as the condition being false. |
| whenParamEqualsValue | Indicates whether the condition should be true when the evaluation results in a true or when the evaluation results in a false. When set to true, if the parameter evaluates to true then the condition will evaluate to true. If seet to false if the parameter evaluates to false, then the condition will evaluatae to true. |
| Optika::NumberCondition< T >::NumberCondition | ( | std::string | parameterName, |
| Teuchos::RCP< Teuchos::ParameterList > | parentList, | ||
| bool | whenParamEqualsValue = true |
||
| ) | [inline] |
Constructs a Number Condition.
| parameterName | The name of the parameter to be evaluated. |
| parentList | The parent Parameter List of the parameter to be evaluated. |
| func | A function to run the value of the parameter through. If the function returns a value greater than 0, this will be interperted as the parameter's current state being "true". If the function returns a value of 0 or less, this will be interperted as the parameter's current state being "false". |
| whenParamEqualsValue | Indicates whether the condition should be true when the evaluation results in a true or when the evaluation results in a fals. When set to true, if the parameter evaluates to true then the condition will evaluate to true. If seet to false if the parameter evaluates to false, then the condition will evaluatae to true. |
| bool Optika::NumberCondition< T >::isConditionTrue | ( | ) | [inline, virtual] |
Determins whether or not a condition is true.
Implements Optika::ParameterCondition.
1.7.4