62 TEST_ASSERT(type == intTester->getTypeAttributeValue() );
65 TEST_ASSERT(operand == intTester->getModifiyingOperand());
70 rcp_dynamic_cast<SubtractionFunction<int> >(readIn);
73 readInCasted->getModifiyingOperand()
75 intTester->getModifiyingOperand());
87 TEST_ASSERT(type == intTester->getTypeAttributeValue() );
90 TEST_ASSERT(operand == intTester->getModifiyingOperand());
95 rcp_dynamic_cast<AdditionFunction<int> >(readIn);
98 readInCasted->getModifiyingOperand()
100 intTester->getModifiyingOperand());
112 TEST_ASSERT(type == intTester->getTypeAttributeValue() );
115 TEST_ASSERT(operand == intTester->getModifiyingOperand());
120 rcp_dynamic_cast<MultiplicationFunction<int> >(readIn);
123 readInCasted->getModifiyingOperand()
125 intTester->getModifiyingOperand());
137 TEST_ASSERT(type == intTester->getTypeAttributeValue() );
140 TEST_ASSERT(operand == intTester->getModifiyingOperand());
145 rcp_dynamic_cast<DivisionFunction<int> >(readIn);
148 readInCasted->getModifiyingOperand()
150 intTester->getModifiyingOperand());
A database for FunctionObjectXMLConverters.
#define TEST_ASSERT(v1)
Assert the given statement is true.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
A simple function object that adds a specififed value from the given arguement in the runFunction fun...
A simple function object that divides a specififed value from the given arguement in the runFunction ...
static XMLObject convertFunctionObject(RCP< const FunctionObject > function)
Given a FunctionObject, converts the FunctionObject to XML.
static RCP< FunctionObject > convertXML(const XMLObject &xmlObject)
Given an XMLObject, converts the XMLObject to a FunctionObject.
static const std::string & getTypeAttributeName()
A simple function object that multiplys a specififed value from the given arguement in the runFunctio...
Smart reference counting pointer class for automatic garbage collection.
T * get() const
Get the raw C++ pointer to the underlying object.
static std::string getOperandAttributeName()
A simple function object that subtracts a specififed value from the given arguement in the runFunctio...
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
const std::string & getRequired(const std::string &name) const
Get an attribute, throwing an std::exception if it is not found.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.