61 Array<std::string> validValues(tuple<std::string>(
"mountain dew",
"pepsi",
"coke",
"fanta"));
64 testingList->
set(
"string param",
"fanta",
"parameter for testing string conditions", stringVali1);
69 testingList->
set(
"string param",
"coke");
75 testingList->
set(
"double param", 5.0,
"parameter for testing number conditions");
80 testingList->
set(
"double param", -1.0);
86 testingList->
set(
"double param", 101.0);
92 testingList->
set(
"bool param",
true,
"parameter for testing bool conditions");
96 testingList->
set(
"bool param",
false);
104 testingList->
set(
"double param", -1.0);
113 testingList->
set(
"bool param",
true);
119 testingList->
set(
"bool param",
false);
122 testingList->
set(
"string param",
"fanta");
129 testingList->
set(
"bool param",
true);
138 Array<std::string> validValues(tuple<std::string>(
"mountain dew",
"pepsi",
"coke",
"fanta"));
141 testingList->
set(
"string param",
"fanta",
"parameter for testing string conditions", stringVali1);
152 testingList->
set(
"double param", 5.0,
"parameter for testing number conditions");
162 testingList->
set(
"bool param",
true,
"parameter for testing bool conditions");
222 testingList->
set(
"double param",1.0);
223 testingList->
set(
"string param",
"awesome");
225 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.
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Set a parameter whose value has type T.
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.
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