43 #ifndef TEUCHOS_STANDARDCONDITION_HPP_
44 #define TEUCHOS_STANDARDCONDITION_HPP_
96 virtual bool evaluateParameter()
const = 0;
102 return parameterEntry_.getConst();
111 return evaluateParameter();
186 return "StringCondition";
194 bool evaluateParameter()
const;
219 void checkParameterType();
303 if(!
func_.is_null()){
304 value =
func_->runFunction(value);
318 return func_.getConst();
396 return "BoolCondition";
404 bool evaluateParameter()
const;
489 virtual bool applyOperator(
bool op1,
bool op2)
const = 0;
506 virtual bool isConditionTrue()
const;
509 bool containsAtLeasteOneParameter()
const;
562 return "OrCondition";
571 bool applyOperator(
bool op1,
bool op2)
const;
633 return "AndCondition";
643 bool applyOperator(
bool op1,
bool op2)
const;
705 return "EqualsCondition";
714 bool applyOperator(
bool op1,
bool op2)
const;
778 return childCondition_;
787 bool isConditionTrue()
const;
790 bool containsAtLeasteOneParameter()
const;
796 return "NotCondition";
841 #endif //TEUCHOS_STANDARDCONDITION_HPP_
A Bool Logic Condition that returns the result or perfroming a logical OR on the conditions.
ConstConditionList conditions_
RCP< const ParameterEntry > parameterEntry_
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.
virtual ~ParameterCondition()
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
virtual ~NumberCondition()
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.
RCP< const Condition > childCondition_
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.
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
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()
virtual ~StringCondition()
RCP< const SimpleFunctionObject< T > > func_