|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is greater than 0 (or some other number based on a given function). If the parameter is greater than 0 this is interperted as the condition being "true". Otherwise the oncidiont is interperted as false. More...
#include <Teuchos_StandardConditions.hpp>

Constructors/Destructor | |
| NumberCondition (RCP< const ParameterEntry > parameter, RCP< const SimpleFunctionObject< T > > func=null) | |
| Constructs a Number Condition. | |
| virtual | ~NumberCondition () |
Overridden from Condition | |
| std::string | getTypeAttributeValue () const |
| Get the value that should be used for the condition type attribute when converting a condition to XML. | |
Overridden from ParameterCondition | |
| bool | evaluateParameter () const |
| | |
Getters/Setters | |
| RCP< const SimpleFunctionObject< T > > | getFunctionObject () const |
| Gets the funciton this NumberCondition is using. Returns null if the NumberCondition is not using one. | |
Private Members | |
| RCP< const SimpleFunctionObject< T > > | func_ |
| | |
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is greater than 0 (or some other number based on a given function). If the parameter is greater than 0 this is interperted as the condition being "true". Otherwise the oncidiont is interperted as false.
Please see NumberConditionConverter for documenation regarding the XML representation of this condition.
Definition at line 260 of file Teuchos_StandardConditions.hpp.
| Teuchos::NumberCondition< T >::NumberCondition | ( | RCP< const ParameterEntry > | parameter, |
| RCP< const SimpleFunctionObject< T > > | func = null |
||
| ) | [inline] |
Constructs a Number Condition.
| parameterName | The name 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. |
Definition at line 277 of file Teuchos_StandardConditions.hpp.
| virtual Teuchos::NumberCondition< T >::~NumberCondition | ( | ) | [inline, virtual] |
Definition at line 284 of file Teuchos_StandardConditions.hpp.
| std::string Teuchos::NumberCondition< T >::getTypeAttributeValue | ( | ) | const [inline, virtual] |
Get the value that should be used for the condition type attribute when converting a condition to XML.
Implements Teuchos::Condition.
Definition at line 291 of file Teuchos_StandardConditions.hpp.
| bool Teuchos::NumberCondition< T >::evaluateParameter | ( | ) | const [inline, virtual] |
Implements Teuchos::ParameterCondition.
Definition at line 301 of file Teuchos_StandardConditions.hpp.
| RCP<const SimpleFunctionObject<T> > Teuchos::NumberCondition< T >::getFunctionObject | ( | ) | const [inline] |
Gets the funciton this NumberCondition is using. Returns null if the NumberCondition is not using one.
Definition at line 317 of file Teuchos_StandardConditions.hpp.
RCP<const SimpleFunctionObject<T> > Teuchos::NumberCondition< T >::func_ [private] |
Definition at line 329 of file Teuchos_StandardConditions.hpp.
1.7.6.1