Skip to content
Snippets Groups Projects
Select Git revision
  • 8b85ba871cf2c9c582031ed612228455e284dcb1
  • master default protected
  • fix-words-ann
  • wccl-rules-migration
  • develop
5 results

variables.cpp

Blame
  • and.cpp 434 B
    #include <libwccl/ops/and.h>
    #include <boost/foreach.hpp>
    #undef foreach
    #define foreach         BOOST_FOREACH
    
    namespace Wccl {
    
    And::BaseRetValPtr And::apply_internal(const FunExecContext& context) const
    {
    	foreach(boost::shared_ptr< Function<Bool> > expression, *expressions_) {
    		if(!(expression->apply(context)->get_value())) {
    			return Predicate::False(context);
    		}
    	}
    	return Predicate::True(context);
    }
    
    } /* end ns Wccl */