15 #ifndef Om_Language_Operation_EvaluateOperation_
21 #ifndef Om_Macro_Precompilation_
23 #include "boost/test/unit_test.hpp"
33 BOOST_AUTO_TEST_SUITE(EvaluateOperationTest)
35 BOOST_AUTO_TEST_CASE(DefinitionTest) {
38 System::Get().Evaluate(
"drop find {evaluate} system")
42 BOOST_AUTO_TEST_CASE(BasicTest) {
49 BOOST_AUTO_TEST_SUITE_END()
66 Om::Language::Operation::EvaluateOperation
70 inline char const * Type_::GetName() {
74 template <
typename TheEvaluateOperation>
75 inline void Type_::GiveElements(
76 TheEvaluateOperation &,
77 Consumer & theConsumer
79 theConsumer.TakeElement(
86 inline Type_::EvaluateOperation() {}
88 template <
typename TheOperand>
89 inline bool Type_::TakeOperand(
90 Evaluation & theEvaluation,
91 TheOperand & theOperand
96 return this->TakeQuotedProducer(
98 *theOperand.GetProgram()
102 template <
typename TheProducer>
103 inline bool Type_::TakeQuotedProducer(
104 Evaluation & theEvaluation,
105 TheProducer & theProducer
107 Expression theExpression;
111 theEvaluation.GetTranslator()
113 theProducer.GiveElements(theScope);
115 theEvaluation.TakeQuotedProducer(theExpression);
#define Om_Language_Operation_EvaluateOperation_GetName_()