|
Teuchos - Trilinos Tools Package
Version of the Day
|
A String Condition is a Parameter Condition that evaluates whether or not a string parameter has taken on a particular value or set of values. More...
#include <Teuchos_StandardConditions.hpp>
Public Types | |
Public types | |
| typedef Array< std::string > | ValueList |
| Convience typedef representing an array of strings. | |
Public Member Functions | |
Constructors/Destructor | |
| StringCondition (RCP< const ParameterEntry > parameter, std::string value) | |
| Constructs a String Condition. | |
| StringCondition (RCP< const ParameterEntry > parameter, ValueList values) | |
| Constructs a String Condition. | |
| virtual | ~StringCondition () |
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 |
Attribute/Query Functions | |
| const ValueList & | getValueList () const |
| Returns the value list being used with this StringCondition. | |
A String Condition is a Parameter Condition that evaluates whether or not a string parameter has taken on a particular value or set of values.
Please see StringConditionConverter for documenation regarding the XML representation of this condition.
Definition at line 144 of file Teuchos_StandardConditions.hpp.
| typedef Array<std::string> Teuchos::StringCondition::ValueList |
Convience typedef representing an array of strings.
Definition at line 154 of file Teuchos_StandardConditions.hpp.
| Teuchos::StringCondition::StringCondition | ( | RCP< const ParameterEntry > | parameter, |
| std::string | value | ||
| ) |
Constructs a String Condition.
| parameter | The parameter to be evaluated. be evaluated. |
| value | The value to compare the parameter's value against. |
Definition at line 191 of file Teuchos_StandardConditions.cpp.
| Teuchos::StringCondition::StringCondition | ( | RCP< const ParameterEntry > | parameter, |
| ValueList | values | ||
| ) |
Constructs a String Condition.
| parameter | The parameter to be evaluated. |
| values | The list values to compare the parameter's value against. |
Definition at line 200 of file Teuchos_StandardConditions.cpp.
| std::string Teuchos::StringCondition::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 185 of file Teuchos_StandardConditions.hpp.
| bool Teuchos::StringCondition::evaluateParameter | ( | ) | const [virtual] |
Evaluate the current condition of a parameter and return the result.
| The | result of evaluating the current condition of the parameter. |
Implements Teuchos::ParameterCondition.
Definition at line 220 of file Teuchos_StandardConditions.cpp.
| const ValueList& Teuchos::StringCondition::getValueList | ( | ) | const [inline] |
Returns the value list being used with this StringCondition.
Definition at line 202 of file Teuchos_StandardConditions.hpp.
1.7.6.1