Skip to content
Snippets Groups Projects
Commit a386407d authored by Adam Wardyński's avatar Adam Wardyński
Browse files

Clarifying some comments regarding And predicate

parent 87aecbd6
Branches
No related merge requests found
#include "and.h"
#include <libwccl/ops/and.h>
namespace Wccl {
......
......@@ -8,6 +8,9 @@
namespace Wccl {
/**
* Operator that realises "and" logical predicate
*/
class And : public LogicalPredicate
{
public:
......@@ -20,8 +23,9 @@ protected :
typedef FunctionBase::BaseRetValPtr BaseRetValPtr ;
/**
* "And" predicate returns True only when all expressions are true,
* otherwise it returns False
* "And" predicate evaluates each expression from left to right,
* and returns False once an expression evaluating to False is found.
* If all expressions were True, it returns True.
*/
virtual BaseRetValPtr apply_internal(const SentenceContext&) const;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment