29 Array<std::string> validValues(tuple<std::string>(
"mountain dew",
"pepsi",
"coke",
"fanta"));
32 testingList->
set(
"string param",
"fanta",
"parameter for testing string conditions", stringVali1);
37 testingList->
set(
"string param",
"coke");
43 testingList->
set(
"double param", 5.0,
"parameter for testing number conditions");
48 testingList->
set(
"double param", -1.0);
54 testingList->
set(
"double param", 101.0);
60 testingList->
set(
"bool param",
true,
"parameter for testing bool conditions");
64 testingList->
set(
"bool param",
false);
72 testingList->
set(
"double param", -1.0);
81 testingList->
set(
"bool param",
true);
87 testingList->
set(
"bool param",
false);
90 testingList->
set(
"string param",
"fanta");
97 testingList->
set(
"bool param",
true);
106 Array<std::string> validValues(tuple<std::string>(
"mountain dew",
"pepsi",
"coke",
"fanta"));
109 testingList->
set(
"string param",
"fanta",
"parameter for testing string conditions", stringVali1);
120 testingList->
set(
"double param", 5.0,
"parameter for testing number conditions");
130 testingList->
set(
"bool param",
true,
"parameter for testing bool conditions");
190 testingList->
set(
"double param",1.0);
191 testingList->
set(
"string param",
"awesome");
193 testingList2->
set(
"bool param",
true);
A Bool Logic Condition that returns the result or perfroming a logical OR on the conditions.
#define TEST_ASSERT(v1)
Assert the given statement is true.
std::set< RCP< const ParameterEntry >, RCPConstComp > ConstParameterEntryList
A list of dependents.
RCP< ParameterEntry > getEntryRCP(const std::string &name)
Retrieves the RCP for an entry with the name name if it exists.
A Bool Logic Condition that returns the result or perfroming a logical AND on the conditions...
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
A Not condition returns the result of performing a logical NOT on a given condition.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Templated set method.
A Number Condition is a Parameter Condition that evaluates whether or not a number parameter is great...
A simple function object that subtracts a specififed value from the given arguement in the runFunctio...
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Templated Parameter List class.
A String Condition is a Parameter Condition that evaluates whether or not a string parameter has take...
A Bool Logic Condition that returns the result or perfroming a logical EQUALS on the conditions...
Dependency::ConstParameterEntryList getAllParameters() const
A list of parameters of arbitrary type.
A simple validator that only allows certain string values to be choosen or simply enforces that a par...
A Bool Condition is a Parameter Condition that evaluates whether or not a Boolean parameter is ture...
bool isConditionTrue() const
Determins whether or not a condition is true.
Smart reference counting pointer class for automatic garbage collection.
Dependency::ConstParameterEntryList getAllParameters() const
Gets all of the parameters that are evaluated in this condition.
void addCondition(RCP< const Condition > toAdd)
Adds a Condition to the list of conditions that will be evaluated by this Bool Logic Condition...
Standard Conditions to be used.
virtual bool isConditionTrue() const