15 #ifndef Om_Language_Operation_FrontPullFormOperation_
21 #ifndef Om_Macro_Precompilation_
23 #include "boost/test/unit_test.hpp"
33 BOOST_AUTO_TEST_SUITE(FrontPullFormOperationTest)
35 BOOST_AUTO_TEST_CASE(DefinitionTest) {
38 System::Get().Evaluate(
"drop find {<-[forms]} system")
42 BOOST_AUTO_TEST_CASE(GeneralTest) {
45 System::Get().Evaluate(
"<-[forms] {1{2}{3}4{5}{6}}")
74 BOOST_AUTO_TEST_SUITE_END()
92 Om::Language::Operation::FrontPullFormOperation
96 inline char const * Type_::GetName() {
100 inline void Type_::Give(Evaluation & theEvaluation) {
101 theEvaluation.TakeOperation(
102 std::auto_ptr<IncompleteOperation>(
105 FrontPullFormOperation
111 template <
typename TheConsumer>
112 inline void Type_::Pull(
113 Expression & theExpression,
114 TheConsumer & theConsumer
116 theExpression.FrontGiveForm(theConsumer);
std::auto_ptr< TheGiveable > Give(TheGiveable &)
Calls Move on the object.