10 #ifndef TEUCHOS_STANDARDCONDITION_HPP_
11 #define TEUCHOS_STANDARDCONDITION_HPP_
18 #include "Teuchos_InvalidConditionException.hpp"
20 #include "Teuchos_StandardFunctionObjects.hpp"
63 virtual bool evaluateParameter()
const = 0;
69 return parameterEntry_.getConst();
78 return evaluateParameter();
153 return "StringCondition";
161 bool evaluateParameter()
const;
186 void checkParameterType();
270 if(!func_.is_null()){
271 value = func_->runFunction(value);
285 return func_.getConst();
363 return "BoolCondition";
371 bool evaluateParameter()
const;
456 virtual bool applyOperator(
bool op1,
bool op2)
const = 0;
473 virtual bool isConditionTrue()
const;
476 bool containsAtLeasteOneParameter()
const;
491 ConstConditionList conditions_;
529 return "OrCondition";
538 bool applyOperator(
bool op1,
bool op2)
const;
600 return "AndCondition";
610 bool applyOperator(
bool op1,
bool op2)
const;
672 return "EqualsCondition";
681 bool applyOperator(
bool op1,
bool op2)
const;
745 return childCondition_;
754 bool isConditionTrue()
const;
757 bool containsAtLeasteOneParameter()
const;
763 return "NotCondition";
808 #endif //TEUCHOS_STANDARDCONDITION_HPP_
A Bool Logic Condition that returns the result or perfroming a logical OR on the conditions.
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
virtual ~NotCondition()
Deconstructs a Not Condition.
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
Array< std::string > ValueList
Convience typedef representing an array of strings.
This object is held as the "value" in the Teuchos::ParameterList std::map.
A Bool Logic Condition that returns the result or perfroming a logical AND on the conditions...
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
A Not condition returns the result of performing a logical NOT on a given condition.
An object to determin if a particular set of conditions are occuring.
const ValueList & getValueList() const
Returns the value list being used with this StringCondition.
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is great...
NumberCondition(RCP< const ParameterEntry > parameter, RCP< const SimpleFunctionObject< T > > func=null)
Constructs a Number Condition.
virtual ~EqualsCondition()
Deconstructs an Equals Condition.
This structure defines some basic traits for a scalar field type.
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
RCP< const SimpleFunctionObject< T > > getFunctionObject() const
Gets the funciton this NumberCondition is using. Returns null if the NumberCondition is not using one...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Templated Parameter List class.
bool evaluateParameter() const
A String Condition is a Parameter Condition that evaluates whether or not a string parameter has take...
virtual ~OrCondition()
Deconstructs an Or Condition.
A Bool Logic Condition that returns the result or perfroming a logical EQUALS on the conditions...
RCP< const Condition > getChildCondition() const
Retrieve the child condition.
A Bool Condition is a Parameter Condition that evaluates whether or not a Boolean parameter is ture...
virtual ~BoolLogicCondition()
Deconstructor for a BoolLogicCondition.
const ConstConditionList & getConditions() const
Gets a list of all conditions that are a part of this BoolLogicCondition/.
Class for retrieving a dummy object of type T.
A Condition determines whether or not a particular set of conditions are currently occuring...
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
Defines basic traits for the scalar field type.
virtual ~AndCondition()
Deconstructs an And Condition.
An abstract parent class for all Bool Logic Conditions.
RCP< const ParameterEntry > getParameter() const
Gets a const pointer to the Parameter being evaluated by this ParameterCondition. ...
bool isConditionTrue() const
Determins whether or not a condition is true.
Smart reference counting pointer class for automatic garbage collection.
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
std::string getTypeAttributeValue() const
Get the value that should be used for the condition type attribute when converting a condition to XML...
An Abstract Base class for all ParameterConditions.
bool containsAtLeasteOneParameter() const
Determines whether or not the evaluation of a parameter occurs somewhere in this condition.
static std::string name()